mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 12:11:17 -05:00
Implement unban functionality
This commit is contained in:
@@ -45,3 +45,21 @@ export function createBannedResponse(requestId: string, corsHeaders: Record<stri
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function createUnbannedResponse(requestId: string, corsHeaders: Record<string, string>) {
|
||||
return new Response(
|
||||
JSON.stringify({
|
||||
success: true,
|
||||
message: 'Account restored. You can now access the application.',
|
||||
requestId
|
||||
}),
|
||||
{
|
||||
status: 200,
|
||||
headers: {
|
||||
...corsHeaders,
|
||||
'Content-Type': 'application/json',
|
||||
'X-Request-ID': requestId
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user