mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-01 06:10:26 +08:00
feat: file down handle
This commit is contained in:
@ -13,6 +13,8 @@ func Init(r *gin.Engine) {
|
||||
common.SecretKey = []byte(conf.Conf.JwtSecret)
|
||||
Cors(r)
|
||||
|
||||
r.GET("/d/*path", controllers.Down)
|
||||
|
||||
api := r.Group("/api", middlewares.Auth)
|
||||
api.POST("/auth/login", controllers.Login)
|
||||
api.GET("/auth/current", controllers.CurrentUser)
|
||||
|
Reference in New Issue
Block a user