mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): 🏷️ Port all /api/v1/accounts to use new schemas
Some checks failed
Mirror to Codeberg / Mirror (push) Failing after 0s
Some checks failed
Mirror to Codeberg / Mirror (push) Failing after 0s
This commit is contained in:
parent
a0ce18337a
commit
e3e285571e
44 changed files with 840 additions and 475 deletions
|
|
@ -3,7 +3,7 @@ import { config } from "~/packages/config-manager";
|
|||
|
||||
export const urlCheck = createMiddleware(async (context, next) => {
|
||||
// Check that request URL matches base_url
|
||||
const baseUrl = new URL(config.http.base_url);
|
||||
const baseUrl = config.http.base_url;
|
||||
|
||||
if (new URL(context.req.url).origin !== baseUrl.origin) {
|
||||
return context.json(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue