Return target url

This commit is contained in:
2020-04-02 01:14:06 +08:00
parent e6826fcb33
commit f720bcaa25

View File

@ -2,8 +2,10 @@ import express from 'express';
let app = express();
app.get('/', (req, res) => {
res.send('Hello World!')
app.get('/*', (req, res) => {
const target = req.url.slice(1)
res.send(target)
});
app.listen(3000, () => {