浏览代码

feat: exchange_rate

kotoyuuko 1 周之前
父节点
当前提交
1d208c6747
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/index.ts

+ 1 - 0
src/index.ts

@@ -84,6 +84,7 @@ app.get(
 
       return c.json({
         rates: ratesMap,
+        exchange_rate: ratesMap[to] / ratesMap[from],
         amount: amount,
         target: amount * ratesMap[to] / ratesMap[from]
       }, 200, {