fixing markers

This commit is contained in:
2026-06-22 00:26:25 -04:00
parent 875a654eb3
commit 7606564a5e

View File

@@ -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'))