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

This commit is contained in:
creations 2025-06-18 18:43:47 -04:00
parent ca0410f7fb
commit 1e6003079b
Signed by: creations
GPG key ID: 8F553AA4320FC711
30 changed files with 870 additions and 90 deletions

View file

@ -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();