This commit is contained in:
@@ -17,6 +17,8 @@ func Router() *iris.Application {
|
||||
// v1
|
||||
v1 := app.Party("/v1")
|
||||
v1.PartyFunc("/users", func(users iris.Party) {
|
||||
// 需要登录
|
||||
users.Use(middleware.SignRequired)
|
||||
// 用户详细信息
|
||||
users.Get("/profile/{name:string}", controller.UserProfile)
|
||||
users.Post("/profile", controller.UserProfile)
|
||||
|
||||
Reference in New Issue
Block a user