2023-10-08 21:23:54 +00:00
|
|
|
import { createPathFilter } from "t_rest/server";
|
2023-10-05 09:00:51 +00:00
|
|
|
import { jobsRoute } from "./jobsRoute.ts";
|
|
|
|
import { sessionsRoute } from "./sessionsRoute.ts";
|
|
|
|
import { usersRoute } from "./usersRoute.ts";
|
|
|
|
import { paramsRoute } from "./paramsRoute.ts";
|
|
|
|
|
2023-10-08 21:23:54 +00:00
|
|
|
export const serveApi = createPathFilter({
|
2023-10-05 09:00:51 +00:00
|
|
|
"jobs": jobsRoute,
|
|
|
|
"sessions": sessionsRoute,
|
|
|
|
"users": usersRoute,
|
|
|
|
"settings/params": paramsRoute,
|
|
|
|
});
|
|
|
|
|
2023-10-08 21:23:54 +00:00
|
|
|
export type ApiHandler = typeof serveApi;
|