Add /
This commit is contained in:
parent
31c37eded7
commit
02bd76305f
3
index.js
3
index.js
|
@ -11,6 +11,9 @@ db.on('open', () => {
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
app.use(express.urlencoded({ extended: true }));
|
app.use(express.urlencoded({ extended: true }));
|
||||||
|
|
||||||
|
app.get("/", (req, res) => {
|
||||||
|
res.sendStatus(204);
|
||||||
|
});
|
||||||
|
|
||||||
// Add your routes and middleware here
|
// Add your routes and middleware here
|
||||||
app.get('/:shortUrl', (req, res) => { // Shortened URL
|
app.get('/:shortUrl', (req, res) => { // Shortened URL
|
||||||
|
|
Loading…
Reference in a new issue