chore: route trailing slash

This commit is contained in:
2025-06-09 13:19:49 +01:00
parent 14ce860c37
commit 9bc18666ad
5 changed files with 24 additions and 18 deletions
+3 -1
View File
@@ -79,6 +79,8 @@ func (api *API) LogoutHandler(context echo.Context) error {
return context.String(http.StatusInternalServerError, "Unexpected error deleting User session!")
}
log.Println(fmt.Sprintf("User with SessionID %s logged out.", sessionId))
id := context.Get("id")
log.Println(fmt.Sprintf("User with ID %s logged out.", id))
return context.String(http.StatusOK, "Logged out successfully!")
}