mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-12 02:06:37 +08:00
migrate frontend
This commit is contained in:
@@ -38,6 +38,8 @@ func Serve() {
|
||||
|
||||
// 初始化路由
|
||||
r := gin.New()
|
||||
// Legacy OpenFlare list endpoints register both /resource and /resource/; disable auto slash redirects.
|
||||
r.RedirectTrailingSlash = false
|
||||
r.Use(gin.Recovery())
|
||||
r.Use(corsMiddleware())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user