I’ve also tried moving custom routes above findOne route like this, but it did not help
module.exports = {
routes: [
{
method: "POST",
path: "/active-users",
handler: "active-user.create",
config: {
policies: []
}
},
{
method: "POST",
path: "/active-users/status",
handler: "active-user.changeOnlineStatus",
config: {
policies: []
}
},
{
method: "GET",
path: "/active-users/online",
handler: "active-user.getOnlineUsers",
config: {
policies: []
}
},
{
method: "GET",
path: "/active-users/:id",
handler: "active-user.findOne",
config: {
policies: []
}
}
]
};