summary refs log tree commit diff
path: root/src/api/util/handlers/route.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-30 17:05:38 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-30 17:07:02 +0200
commit6142dcae20eef7b864c3c495436e4c510a661c1a (patch)
tree2956018dce0d346276d6a1b8b27cc928905996fc /src/api/util/handlers/route.ts
parentBasic client patching system (diff)
downloadserver-6142dcae20eef7b864c3c495436e4c510a661c1a.tar.xz
testing stuff dev/rory/paths_test
Diffstat (limited to 'src/api/util/handlers/route.ts')
-rw-r--r--src/api/util/handlers/route.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/util/handlers/route.ts b/src/api/util/handlers/route.ts

index d43ae103..f8a57dcc 100644 --- a/src/api/util/handlers/route.ts +++ b/src/api/util/handlers/route.ts
@@ -5,6 +5,7 @@ import { FosscordApiErrors, getPermission, getRights, + Paths, PermissionResolvable, Permissions, RightResolvable, @@ -17,8 +18,7 @@ import { NextFunction, Request, Response } from "express"; import fs from "fs"; import path from "path"; -const SchemaPath = path.join(__dirname, "..", "..", "..", "..", "assets", "schemas.json"); -const schemas = JSON.parse(fs.readFileSync(SchemaPath, { encoding: "utf8" })); +const schemas = JSON.parse(fs.readFileSync(Paths.SchemaPath, { encoding: "utf8" })); export const ajv = new Ajv({ allErrors: true,