Add user lookup (search for user with only initial part of their username)

This commit is contained in:
Howl
2016-05-14 22:43:47 +02:00
parent 35fb27e3c1
commit 42437bde44
2 changed files with 42 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ func Start(conf common.Conf, db *sql.DB) *gin.Engine {
gv1.GET("/users/whatid", Method(v1.UserWhatsTheIDGET, db, common.PrivilegeRead))
gv1.GET("/users/full", Method(v1.UserFullGET, db, common.PrivilegeRead))
gv1.GET("/users/userpage", Method(v1.UserUserpageGET, db, common.PrivilegeRead))
gv1.GET("/users/lookup", Method(v1.UserLookupGET, db, common.PrivilegeRead))
gv1.GET("/badges", Method(v1.BadgesGET, db, common.PrivilegeRead))
// ReadConfidential privilege required