feat(backend): add cors

This commit is contained in:
2026-04-04 17:47:36 +03:00
parent 0660117c07
commit 958211198c
4 changed files with 37 additions and 0 deletions
+1
View File
@@ -130,6 +130,7 @@ func main() {
}
router := gin.Default()
router.Use(handlers.CorsMiddleware("http://127.0.0.1:5173;http://localhost:5173"))
docs.SwaggerInfo.BasePath = "/api/v1"
docs.SwaggerInfo.Title = "HellreigN"
docs.SwaggerInfo.Version = "1.0"