Add Documentation API

This commit is contained in:
Howl
2016-06-13 22:40:01 +02:00
parent 32738aaae0
commit a65cf086f0
4 changed files with 98 additions and 1 deletions

View File

@@ -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))