mirror of
https://github.com/directus/directus.git
synced 2026-01-14 11:37:57 -05:00
8 lines
260 B
JavaScript
8 lines
260 B
JavaScript
import { readFileSync } from 'node:fs';
|
|
import { dirname, resolve } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
export const spec = JSON.parse(
|
|
readFileSync(resolve(dirname(fileURLToPath(import.meta.url)), './dist/openapi.json'), 'utf8'),
|
|
);
|