sunsheng 8 сар өмнө
parent
commit
afa006c744
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      src/api/router.go

+ 2 - 0
src/api/router.go

@@ -20,6 +20,8 @@ func RegRouters(svc *Service) {
 	crrouter.GETJWT("/admin/user/list", UserList)
 	crrouter.GETJWT("/admin/user/detail/:id", UserDetail)
 	crrouter.POSTJWT("/admin/user/update", UpdateUser)
+	// 获取自己的详情信息
+	crrouter.GETJWT("/user/profile", UserProfile)
 
 	Upload(crrouter)
 	Version(crrouter)