diff --git a/server/airtraffic.mjs b/server/airtraffic.mjs index cee0efb..76077cf 100644 --- a/server/airtraffic.mjs +++ b/server/airtraffic.mjs @@ -1,11 +1,10 @@ import { cfg } from './config.mjs' -import { writeFile, readFile } from 'fs/promises' -import { existsSync } from 'fs' +import { readFile } from 'fs/promises' import { resolve, dirname } from 'path' import { fileURLToPath } from 'url' const DIR = dirname(fileURLToPath(import.meta.url)) -const SHAPES_PATH = resolve(DIR, 'public', 'aircraft.js') +const SHAPES_PATH = resolve(DIR, 'public', 'aircraft.json') export async function getShapes() { JSON.parse(await readFile(SHAPES_PATH, 'utf8'))