Split services into core and request

This commit is contained in:
2026-01-17 16:19:32 -06:00
parent e59bb35ac9
commit 894c841bb7
11 changed files with 76 additions and 71 deletions

View File

@@ -5,9 +5,9 @@ import { DateTime } from "ts-luxon";
import { authRoutes } from "./auth/routes";
import { routes as basicRoutes } from "./basic/routes";
import { contentTypes } from "./content-types";
import { core } from "./core";
import { multiHandler } from "./handlers";
import { httpCodes } from "./http-codes";
import { services } from "./services";
import type { Call, Result, Route } from "./types";
// FIXME: Obviously put this somewhere else
@@ -35,7 +35,7 @@ const routes: Route[] = [
handler: async (_call: Call): Promise<Result> => {
console.log("starting slow request");
await services.misc.sleep(2);
await core.misc.sleep(2);
console.log("finishing slow request");
const retval = okText("that was slow");