[now dev] Tests for routing and apply default frontend builder last (#2518)

This commit is contained in:
Andy
2019-07-09 20:58:04 +02:00
committed by Andy Bitz
parent ee80ea59f4
commit 00c792297a
8 changed files with 53 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
{
"scripts": {
"build": "rm -Rf dist && cp -r public dist"
}
}

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
Hello World
</body>
</html>

View File

@@ -0,0 +1,3 @@
module.exports = (req, res) => {
res.end(`${req.query.endpoint}`);
};

View File

@@ -0,0 +1,3 @@
module.exports = (req, res) => {
res.end(`${req.query.endpoint}/${req.query.id}`);
};

View File

@@ -0,0 +1,3 @@
module.exports = (req, res) => {
res.end('hello and welcome');
};

View File

@@ -0,0 +1,5 @@
{
"scripts": {
"build": "rm -Rf dist && cp -r public dist"
}
}

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
Hello World
</body>
</html>