aboutsummaryrefslogtreecommitdiffstats
path: root/routes/locations.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-08-26 21:17:43 -0700
committerAdam Soltys <[email protected]>2024-08-26 21:17:43 -0700
commitfe62cadd6fb4a7e49f7d59401fc74ae0411e32a7 (patch)
treeaa8f34e1692bd2d638a2c996eeadb58671d07aea /routes/locations.ts
parent00e43ddc0bf3d6dd719fc9295d156567fa2fecfb (diff)
downloadcoinos-server-fe62cadd6fb4a7e49f7d59401fc74ae0411e32a7.tar.gz
coinos-server-fe62cadd6fb4a7e49f7d59401fc74ae0411e32a7.zip
typescript
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 });
+ },
+};