diff options
author | Thesourtimes <cckhmck@gmail.com> | 2022-01-01 20:59:08 +0300 |
---|---|---|
committer | Thesourtimes <cckhmck@gmail.com> | 2022-01-01 20:59:08 +0300 |
commit | 5489cabc9dd30617ad0e83d72c9b6da2c8e2053e (patch) | |
tree | bdb969b829c5de59cf94708591e75168ee10c511 | |
parent | Correct the format (diff) | |
download | server-5489cabc9dd30617ad0e83d72c9b6da2c8e2053e.tar.xz |
Fix schemas handler
-rw-r--r-- | api/src/util/handlers/route.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/handlers/route.ts b/api/src/util/handlers/route.ts index ef6c8571..05658ad3 100644 --- a/api/src/util/handlers/route.ts +++ b/api/src/util/handlers/route.ts @@ -18,7 +18,7 @@ import Ajv from "ajv"; import { AnyValidateFunction } from "ajv/dist/core"; import addFormats from "ajv-formats"; -const SchemaPath = path.join(__dirname, "..", "..", "assets", "schemas.json"); +const SchemaPath = path.join(__dirname, "..", "..", "..", "assets", "schemas.json"); const schemas = JSON.parse(fs.readFileSync(SchemaPath, { encoding: "utf8" })); export const ajv = new Ajv({ |