mirror of
https://github.com/hazemKrimi/crimson-vault.git
synced 2026-05-01 18:20:27 +00:00
chore: route trailing slash
This commit is contained in:
@@ -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!")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user