From 6142dcae20eef7b864c3c495436e4c510a661c1a Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Tue, 30 Aug 2022 17:05:38 +0200 Subject: testing stuff --- src/api/util/handlers/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/util/handlers/route.ts') 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, -- cgit 1.5.1