aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/rates.ts13
-rw-r--r--routes/users.ts1
2 files changed, 9 insertions, 5 deletions
diff --git a/routes/rates.ts b/routes/rates.ts
index 828e5b2c..f75afc57 100644
--- a/routes/rates.ts
+++ b/routes/rates.ts
@@ -1,11 +1,16 @@
import { g } from "$lib/db";
export default {
- async last(req, res) {
- res.send(await g('rate'));
+ async fx(_, res) {
+ let { fx } = await g("fx");
+ res.send({fx});
},
- async index(req, res) {
- res.send(await g('rates'));
+ async last(_, res) {
+ res.send(await g("rate"));
+ },
+
+ async index(_, res) {
+ res.send(await g("rates"));
},
};
diff --git a/routes/users.ts b/routes/users.ts
index e6044a47..3fcaad66 100644
--- a/routes/users.ts
+++ b/routes/users.ts
@@ -16,7 +16,6 @@ import upload from "$lib/upload";
const { encode, decode, fromWords, toWords } = bech32;
-console.log("HI");
export default {
upload,