B
B
BEKa T2022-03-24 00:31:34
Node.js
BEKa T, 2022-03-24 00:31:34

Why is a slash added at the end of the url?

Why is there a slash at the end of the url?
http://localhost:3000/auth/create/

auth.js

// Create new account page
router.get('/create', (req, res) => {
  res.render('create-page');
})


app.js
// sign in/up
app.use('/auth/', routes.auth);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question