Adding a custom route to the Docusuarus #10280
Unanswered
flamecopper
asked this question in
General
Replies: 2 comments 1 reply
-
Can you give us the code you tried to implement ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi there, On a markdown file, I have created a ..., after that I have on the src/component/dbroute.js I have tried to create something like this: "// Placeholder logout routeapp.get('/logout', (req, res) => { res.clearCookie('user_id'); res.send('Logged out'); }); " |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there. I would like to add a custom route.
There is a knockdown for when I want to implement a custom button called logout.
When the logout button is pressed, it will actually clear the cookie.
Is there anything I can do to actually implement this?
Beta Was this translation helpful? Give feedback.
All reactions