mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Begin work on refactoring every single route to use new subsystems
This commit is contained in:
parent
3b75f5f0a5
commit
05140f0d6f
19 changed files with 128 additions and 183 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { getConfig } from "~classes/configmanager";
|
||||
import type { RouteHandler } from "~server/api/routes.type";
|
||||
import type { APIRouteMeta } from "~types/api";
|
||||
|
||||
export const applyConfig = (routeMeta: APIRouteMeta) => {
|
||||
|
|
@ -16,3 +17,7 @@ export const applyConfig = (routeMeta: APIRouteMeta) => {
|
|||
|
||||
return newMeta;
|
||||
};
|
||||
|
||||
export const apiRoute = <T>(routeFunction: RouteHandler<T>) => {
|
||||
return routeFunction;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue