mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 19:02:33 +01:00
Fix schemas handler
This commit is contained in:
parent
01883ab145
commit
e82d527283
@ -18,7 +18,7 @@ import Ajv from "ajv";
|
|||||||
import { AnyValidateFunction } from "ajv/dist/core";
|
import { AnyValidateFunction } from "ajv/dist/core";
|
||||||
import addFormats from "ajv-formats";
|
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" }));
|
const schemas = JSON.parse(fs.readFileSync(SchemaPath, { encoding: "utf8" }));
|
||||||
|
|
||||||
export const ajv = new Ajv({
|
export const ajv = new Ajv({
|
||||||
|
Loading…
Reference in New Issue
Block a user