initial commit
This commit is contained in:
7
server/api/pois.get.js
Normal file
7
server/api/pois.get.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { getDb } from '../utils/db.js'
|
||||
|
||||
export default defineEventHandler(async () => {
|
||||
const { all } = await getDb()
|
||||
const rows = await all('SELECT id, lat, lng, label, icon_type FROM pois ORDER BY id')
|
||||
return rows
|
||||
})
|
||||
Reference in New Issue
Block a user