I am currently writing an API which will require a user to pass an authentication token in the header of each request. Now I know I can create a catchall route say
app.get('/*', function(req,res){
});
but I was wondering how do I make it so that it excludes certain routes such as /login
or /
?