mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Implement WebFinger, rework TS
This commit is contained in:
parent
29f63dfcb7
commit
c573052450
56 changed files with 560 additions and 239 deletions
|
|
@ -5,4 +5,10 @@ export const jsonResponse = (data: object, status = 200) => {
|
|||
},
|
||||
status,
|
||||
});
|
||||
}
|
||||
|
||||
export const errorResponse = (error: string, status = 500) => {
|
||||
return jsonResponse({
|
||||
error: error
|
||||
}, status);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue