feat: Add API key middleware and update configuration to support API key validation

This commit is contained in:
2025-03-11 17:20:39 +00:00
parent 165432208c
commit c08da6fc92
5 changed files with 46 additions and 3 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ func main() {
r.GET("/api", helloHandler)
// Setup API routes
routes.SetupRouter(r)
routes.SetupRouter(r, cfg)
// Swagger documentation
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))