feat: file down handle

This commit is contained in:
Noah Hsu
2022-06-28 18:00:11 +08:00
parent d89ec89d51
commit 67bc66fedf
9 changed files with 243 additions and 3 deletions

View File

@ -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)