[API CHANGE] /tokens/self/delete now requires post

This commit is contained in:
Howl 2016-11-21 17:02:25 +01:00
parent 20dba6cd86
commit 700170392a

View File

@ -90,7 +90,7 @@ func Start(conf common.Conf, dbO *sqlx.DB) *gin.Engine {
{
gv1.POST("/tokens", Method(v1.TokenNewPOST))
gv1.POST("/tokens/new", Method(v1.TokenNewPOST))
gv1.GET("/tokens/self/delete", Method(v1.TokenSelfDeleteGET))
gv1.POST("/tokens/self/delete", Method(v1.TokenSelfDeleteGET))
// Auth-free API endpoints (public data)
gv1.GET("/ping", Method(v1.PingGET))