add a method for retrieving an user's userpage.

This commit is contained in:
Howl
2016-04-07 14:42:17 +02:00
parent fb3d2e88dd
commit 8d99ff1070
2 changed files with 19 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ func Start(conf common.Conf, db *sql.DB) {
gv1.GET("/users/self", Method(v1.UserSelfGET, db, common.PrivilegeRead))
gv1.GET("/users/whatid/:username", Method(v1.UserWhatsTheIDGET, db, common.PrivilegeRead))
gv1.GET("/users/full/:id", Method(v1.UserFullGET, db, common.PrivilegeRead))
gv1.GET("/users/userpage/:id", Method(v1.UserUserpageGET, db, common.PrivilegeRead))
gv1.GET("/badges", Method(v1.BadgesGET, db, common.PrivilegeRead))
gv1.GET("/badges/:id", Method(v1.BadgeByIDGET, db, common.PrivilegeRead))