mirror of
				https://github.com/SphericalKat/medium.rip.git
				synced 2025-11-04 04:25:56 +00:00 
			
		
		
		
	Merge 20e2679dbd into 0cd9fd70cb
				
					
				
			This commit is contained in:
		
						commit
						c146c36c53
					
				@ -16,12 +16,14 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine, fs http.FileSystem) {
 | 
			
		||||
	// more Fiber options at https://docs.gofiber.io/api/fiber/
 | 
			
		||||
	app := fiber.New(fiber.Config{
 | 
			
		||||
		StreamRequestBody:     true,
 | 
			
		||||
		ServerHeader:          "Katbox",
 | 
			
		||||
		AppName:               "Katbox",
 | 
			
		||||
		DisableStartupMessage: true,
 | 
			
		||||
		Views: engine,
 | 
			
		||||
		Network: "tcp",
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	// static file server
 | 
			
		||||
@ -48,4 +50,4 @@ func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine
 | 
			
		||||
		log.Warn("Server shutdown Failed: ", err)
 | 
			
		||||
	}
 | 
			
		||||
	wg.Done()
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user