mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 13:54:04 +08:00
fix: login don't need auth
This commit is contained in:
parent
9ba7cf0835
commit
156da2b794
@ -18,8 +18,9 @@ func Init(r *gin.Engine) {
|
||||
r.GET("/d/*path", middlewares.Down, controllers.Down)
|
||||
r.GET("/p/*path", middlewares.Down, controllers.Proxy)
|
||||
|
||||
r.POST("/api/auth/login", controllers.Login)
|
||||
|
||||
api := r.Group("/api", middlewares.Auth)
|
||||
api.POST("/auth/login", controllers.Login)
|
||||
api.GET("/auth/current", controllers.CurrentUser)
|
||||
|
||||
admin := api.Group("/admin", middlewares.AuthAdmin)
|
||||
|
Loading…
x
Reference in New Issue
Block a user