Prepare backend for production api path
This commit is contained in:
@@ -22,6 +22,8 @@ app.use(morgan(env.nodeEnv === 'production' ? 'combined' : 'dev'));
|
||||
app.use(express.json());
|
||||
|
||||
app.use('/auth/login', authRateLimiter);
|
||||
app.use('/api/auth/login', authRateLimiter);
|
||||
app.use('/api', routes);
|
||||
app.use(routes);
|
||||
app.use(notFound);
|
||||
app.use(errorHandler);
|
||||
|
||||
Reference in New Issue
Block a user