This commit is contained in:
2023-07-19 23:56:31 +08:00
parent a5c832adaa
commit a9ca26c3ec
2 changed files with 9 additions and 12 deletions

View File

@@ -91,7 +91,7 @@ func main() {
})
// CORS handler
engine.Use(corsMiddleware())
engine.OPTIONS("/v1/*any", handleCORS)
// get authorization config from db
db.Take(&authConfig, "key = ?", "authorization")