Add /meta/{up_since,kill}

This commit is contained in:
Howl
2016-04-09 18:14:38 +02:00
parent b153d45f07
commit 92d308879b
3 changed files with 48 additions and 1 deletions

View File

@@ -50,6 +50,8 @@ func Start(conf common.Conf, db *sql.DB) *gin.Engine {
// T E -- the one who said "wow that's so meta"
// A T E M
gv1.GET("/meta/restart", Method(v1.MetaRestartGET, db, common.PrivilegeAPIMeta))
gv1.GET("/meta/kill", Method(v1.MetaKillGET, db, common.PrivilegeAPIMeta))
gv1.GET("/meta/up_since", Method(v1.MetaUpSinceGET, db, common.PrivilegeAPIMeta))
}
}