From a743aff8faa02e6b02d82a1509b497fe63da9eb5 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 11 Sep 2021 13:17:41 +0100 Subject: [PATCH] Logout should be a POST. --- src/routes/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/auth.ts b/src/routes/auth.ts index e25804e..486f208 100644 --- a/src/routes/auth.ts +++ b/src/routes/auth.ts @@ -233,7 +233,7 @@ resource('/session/login', { }); resource('/session/logout', { - delete: routeAuthenticated( + post: routeAuthenticated( "Logout", "Close current session.", {