大面积重构
Response部分 usersController部分 中间件部分
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"drive-linked/pkg/controller"
|
||||
"drive-linked/pkg/middleware"
|
||||
"drive-linked/pkg/service/controller"
|
||||
"github.com/kataras/iris/v12"
|
||||
)
|
||||
|
||||
@@ -20,8 +20,7 @@ func Router() *iris.Application {
|
||||
// 需要登录
|
||||
users.Use(middleware.SignRequired)
|
||||
// 用户详细信息
|
||||
users.Get("/profile/{name:string}", controller.UserProfile)
|
||||
users.Post("/profile", controller.UserProfile)
|
||||
users.Get("/profile", controller.UserProfile)
|
||||
})
|
||||
return app
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user