Add Documentation API
This commit is contained in:
@@ -29,6 +29,9 @@ func Start(conf common.Conf, dbO *sql.DB) *gin.Engine {
|
||||
gv1.GET("/ping", Method(v1.PingGET))
|
||||
gv1.GET("/surprise_me", Method(v1.SurpriseMeGET))
|
||||
gv1.GET("/privileges", Method(v1.PrivilegesGET))
|
||||
gv1.GET("/doc", Method(v1.DocGET))
|
||||
gv1.GET("/doc/content", Method(v1.DocContentGET))
|
||||
gv1.GET("/doc/rules", Method(v1.DocRulesGET))
|
||||
|
||||
// Read privilege required
|
||||
gv1.GET("/users", Method(v1.UsersGET, common.PrivilegeRead))
|
||||
|
Reference in New Issue
Block a user