mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 21:27:20 +01:00
Added missing user delete route.
This commit is contained in:
parent
7d952029c1
commit
fc4716a38d
4 changed files with 37 additions and 12 deletions
|
|
@ -17,13 +17,13 @@ export function unauthorized(message?: any) {
|
|||
}
|
||||
|
||||
export function forbidden(message?: any) {
|
||||
return Response.json({ error: 'Forbidden', message, status: 403 });
|
||||
return Response.json({ error: 'Forbidden', message }, { status: 403 });
|
||||
}
|
||||
|
||||
export function notFound(message?: any) {
|
||||
return Response.json({ error: 'Not found', message, status: 404 });
|
||||
return Response.json({ error: 'Not found', message }, { status: 404 });
|
||||
}
|
||||
|
||||
export function serverError(error?: any) {
|
||||
return Response.json({ error: 'Server error', message: serializeError(error), status: 500 });
|
||||
return Response.json({ error: 'Server error', message: serializeError(error) }, { status: 500 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue