J
J
Js_master2282018-09-25 09:17:14
Node.js
Js_master228, 2018-09-25 09:17:14

Problem with routes?

There are 2 routes
app.get('/post/:slug')
and
app.get('/post/create')
When the page opens, post/create is handled by the post/:slug handler
How to make it handled by the post/create function?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Sanych, 2018-09-25
@Js_master228

maybe swap them)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question