diff --git a/.gitignore b/.gitignore index 572406b..1334837 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /node_modules -package-lock.json \ No newline at end of file +package-lock.json +yarn.lock \ No newline at end of file diff --git a/index.js b/index.js index 68754c0..cc19dce 100644 --- a/index.js +++ b/index.js @@ -47,7 +47,7 @@ app.get('/:time', (req, res) => { res.json(response); // 数据返回 }); }) -app.get('/:time-:language', (req, res) => { +app.get('/:time/:language', (req, res) => { const { time, // 获取排序时间 language // 获取对应语言