Standardise function names (Ping -> PingGET, SurpriseMe -> SurpriseMeGET)

This commit is contained in:
Howl
2016-04-04 14:36:37 +02:00
parent 6bae1e2390
commit 851c90764a
2 changed files with 6 additions and 6 deletions

View File

@@ -19,8 +19,8 @@ func Start(conf common.Conf, db *sql.DB) {
gv1 := api.Group("/v1")
{
// Auth-free API endpoints
gv1.GET("/ping", Method(v1.Ping, db))
gv1.GET("/surprise_me", Method(v1.SurpriseMe, db))
gv1.GET("/ping", Method(v1.PingGET, db))
gv1.GET("/surprise_me", Method(v1.SurpriseMeGET, db))
gv1.GET("/privileges", Method(v1.PrivilegesGET, db))
// Read privilege required