move validationResult to value instead, add create, delete, list, info route for guilds
All checks were successful
Code quality checks / biome (push) Successful in 11s
All checks were successful
Code quality checks / biome (push) Successful in 11s
This commit is contained in:
parent
ca0410f7fb
commit
1e6003079b
30 changed files with 870 additions and 90 deletions
|
@ -16,17 +16,6 @@ const routeDef: RouteDef = {
|
|||
|
||||
async function handler(request: ExtendedRequest): Promise<Response> {
|
||||
try {
|
||||
const { session } = request;
|
||||
|
||||
if (!session) {
|
||||
const response: LogoutResponse = {
|
||||
code: httpStatus.UNAUTHORIZED,
|
||||
success: false,
|
||||
error: errorMessages.NOT_AUTHENTICATED,
|
||||
};
|
||||
return Response.json(response, { status: httpStatus.UNAUTHORIZED });
|
||||
}
|
||||
|
||||
await sessionManager.invalidateSession(request);
|
||||
const clearCookie = cookieService.clearCookie();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue