summary refs log tree commit diff
path: root/src/api/util/handlers/route.ts
diff options
context:
space:
mode:
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,