aboutsummaryrefslogtreecommitdiffstats
path: root/routes/rates.ts
blob: f75afc57a441a0c2032ca5c5edb1b5ddb66b0683 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { g } from "$lib/db";

export default {
  async fx(_, res) {
    let { fx } = await g("fx");
    res.send({fx});
  },

  async last(_, res) {
    res.send(await g("rate"));
  },

  async index(_, res) {
    res.send(await g("rates"));
  },
};