Closed
Description
Hi,
I want to handle some of my routes on the server (HapiJS) with some specific configs like this:
server.route({
method:'GET',
path:'/store/about/',
config:{
auth:{
strategies:['bearer'],
mode: 'optional'
}
},
handler: function(req, res){
console.log('Hello from server, authorized route!');
}
But I couldn't find an example or documentation that shows where to put server routes in electrode architecture. It seems that most of the examples on universal apps assume same configuration for every route. Could you please tell me where to put these routing configs?
Thanks
Metadata
Assignees
Labels
No labels