Is this a plugin in NodeBB? You'll need to add the routes by listening to the static:app.init hook.