Compare commits
	
		
			4 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						3dee3e72af
	
				 | 
					
					
						|||
| 
						
						
							
						
						f5914e5c38
	
				 | 
					
					
						|||
| 
						
						
							
						
						5a5a7179e9
	
				 | 
					
					
						|||
| 
						
						
							
						
						6c57d63891
	
				 | 
					
					
						
							
								
								
									
										8
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								main.go
									
									
									
									
									
								
							@@ -10,6 +10,7 @@ import (
 | 
			
		||||
	"git.odit.services/lfk/document-server/models"
 | 
			
		||||
	"git.odit.services/lfk/document-server/services"
 | 
			
		||||
	"github.com/gofiber/fiber/v2"
 | 
			
		||||
	"github.com/gofiber/fiber/v2/middleware/cors"
 | 
			
		||||
	"github.com/gofiber/fiber/v2/middleware/keyauth"
 | 
			
		||||
	"github.com/gofiber/swagger"
 | 
			
		||||
	"github.com/redis/go-redis/v9"
 | 
			
		||||
@@ -41,6 +42,7 @@ func loadEnv() error {
 | 
			
		||||
	viper.SetDefault("CARD_BARCODEFORMAT", "ean13")
 | 
			
		||||
	viper.SetDefault("CARD_BARCODEPREFIX", "")
 | 
			
		||||
	viper.SetDefault("SPONSORING_RECEIPTMINIMUM", 0)
 | 
			
		||||
	viper.SetDefault("SPONSORING_DISCLAIMER", "Disclaimer")
 | 
			
		||||
	viper.SetDefault("SPONSORING_BARCODEFORMAT", "code128")
 | 
			
		||||
	viper.SetDefault("SPONSORING_BARCODEPREFIX", "")
 | 
			
		||||
	viper.SetDefault("CERTIFICATE_FOOTER", "Footer")
 | 
			
		||||
@@ -69,11 +71,11 @@ func loadEnv() error {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// @title						LfK Document Server API
 | 
			
		||||
// @description				This is the API documentation for the LfK Document Server - a tool for pdf generation.
 | 
			
		||||
// @description					This is the API documentation for the LfK Document Server - a tool for pdf generation.
 | 
			
		||||
// @license.name				CC BY-NC-SA 4.0
 | 
			
		||||
// @termsOfService				https://lauf-fuer-kaya.de/datenschutz
 | 
			
		||||
// @contact.name				ODIT.Services UG (haftungsbeschränkt)
 | 
			
		||||
// @contact.url				https://odit.services
 | 
			
		||||
// @contact.url					https://odit.services
 | 
			
		||||
// @contact.email				info@odit.services
 | 
			
		||||
// @securityDefinitions.apiKey	ApiKeyAuth
 | 
			
		||||
// @in							query
 | 
			
		||||
@@ -117,6 +119,8 @@ func main() {
 | 
			
		||||
		Prefork: config.Prod,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	app.Use(cors.New())
 | 
			
		||||
 | 
			
		||||
	// Swagger documentation route
 | 
			
		||||
	app.Get("/swagger/*", swagger.HandlerDefault)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user