mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 12:57:47 +00:00
[now dev] Tests for routing and apply default frontend builder last (#2518)
This commit is contained in:
3
test/fixtures/unit/now-dev-default-routing/api/[endpoint].js
vendored
Normal file
3
test/fixtures/unit/now-dev-default-routing/api/[endpoint].js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (req, res) => {
|
||||
res.end(`${req.query.endpoint}`);
|
||||
};
|
||||
3
test/fixtures/unit/now-dev-default-routing/api/[endpoint]/[id].js
vendored
Normal file
3
test/fixtures/unit/now-dev-default-routing/api/[endpoint]/[id].js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (req, res) => {
|
||||
res.end(`${req.query.endpoint}/${req.query.id}`);
|
||||
};
|
||||
3
test/fixtures/unit/now-dev-default-routing/api/welcome.js
vendored
Normal file
3
test/fixtures/unit/now-dev-default-routing/api/welcome.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (req, res) => {
|
||||
res.end('hello and welcome');
|
||||
};
|
||||
Reference in New Issue
Block a user