diff --git a/src/routes/data/services/+server.ts b/src/routes/data/services/+server.ts new file mode 100644 index 0000000..652b3e1 --- /dev/null +++ b/src/routes/data/services/+server.ts @@ -0,0 +1,10 @@ +import * as fs from "fs"; +import {json} from "@sveltejs/kit"; + +export function GET() { + const content = fs.readFileSync("static/data/services.json").toString(); + + let data = JSON.parse(content) + + return json(data); +} \ No newline at end of file