From 700170392a86c56c2e827ebfcaea9f0c2fbdfc05 Mon Sep 17 00:00:00 2001 From: Howl Date: Mon, 21 Nov 2016 17:02:25 +0100 Subject: [PATCH] [API CHANGE] /tokens/self/delete now requires post --- app/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/start.go b/app/start.go index 3ac683c..b586da8 100644 --- a/app/start.go +++ b/app/start.go @@ -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))