I want to add a custom route for a feature in my project，I think I need to develop a plugin for route .
But I don't know how to develop a route plugin .
Can someone give me an example ,Thanks
I have solved it. use "static:app.load" hook , and use the method's first arguments ,we can setting routes to do what we want to do
@cool You can just check req.uid, if it is true then the user is logged in.
@julian It means that I can test my plugin with nodebb actually firing hooks for it.
This is an old post, but have you found a solution? I have the exact same problem. I need a new user to be redirected to profile edit page to enter the email address.
@julian @psychobunny Yep, that's right, I didnt think about that. Thanks
Ahh looks like it's already there just doesn't return error 😛 I will add that now.