aboutsummaryrefslogtreecommitdiffstats
path: root/routes/locations.ts
diff options
context:
space:
mode:
Diffstat (limited to 'routes/locations.ts')
-rw-r--r--routes/locations.ts8
1 files changed, 8 insertions, 0 deletions
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 });
+ },
+};