From fe62cadd6fb4a7e49f7d59401fc74ae0411e32a7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 26 Aug 2024 21:17:43 -0700 Subject: typescript --- routes/locations.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 routes/locations.ts (limited to 'routes/locations.ts') diff --git a/routes/locations.ts b/routes/locations.ts new file mode 100644 index 00000000..e9a6843c --- /dev/null +++ b/routes/locations.ts @@ -0,0 +1,8 @@ +import { g } from "$lib/db"; + +export default { + async list(req, res) { + let locations = await g("locations"); + res.send({ locations }); + }, +}; -- cgit v1.2.3