Express API - Add Authentication Middleware to all Routes

Job ID: 32411429

Budget: $30 – $250 CAD

I am having problems adding authentication middleware to all functions in my express api function. I need some help!

Max Budget $30 => don't try and negotiate because this is relatively straight forward if you know what you are doing (I don't)

What I have tried
app.use(authenticateAllRoutes);

app.all('/*', authenticateAllRoutes);
Related categories: JavaScript Express JS