fixing markers
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
import { cfg } from './config.mjs'
|
import { cfg } from './config.mjs'
|
||||||
import { writeFile, readFile } from 'fs/promises'
|
import { readFile } from 'fs/promises'
|
||||||
import { existsSync } from 'fs'
|
|
||||||
import { resolve, dirname } from 'path'
|
import { resolve, dirname } from 'path'
|
||||||
import { fileURLToPath } from 'url'
|
import { fileURLToPath } from 'url'
|
||||||
|
|
||||||
const DIR = dirname(fileURLToPath(import.meta.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() {
|
export async function getShapes() {
|
||||||
JSON.parse(await readFile(SHAPES_PATH, 'utf8'))
|
JSON.parse(await readFile(SHAPES_PATH, 'utf8'))
|
||||||
|
|||||||
Reference in New Issue
Block a user