fix(routes): add unimplemented error message to space route

This commit is contained in:
zyachel 2023-01-07 23:00:36 +05:30
parent e35f4c699a
commit 8820f36af8
4 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars */
/* eslint-disable no-param-reassign */
////////////////////////////////////////////////////////

View file

@ -17,6 +17,8 @@ apiRouter.get('/image/:domain/:path', image);
apiRouter.get('/profile/:name', profile);
apiRouter.get('/topic/:slug', topic);
apiRouter.get('/unanswered/:slug', answers);
apiRouter.get('/space/:name', unimplemented);
apiRouter.get('/space/:name/:slug', unimplemented);
apiRouter.get('/:slug', answers);
export default apiRouter;

View file

@ -17,6 +17,8 @@ viewRouter.get('/privacy', privacy);
viewRouter.get('/profile/:name', profile);
viewRouter.get('/topic/:slug', topic);
viewRouter.get('/unanswered/:slug', answers);
viewRouter.get('/space/:name', unimplemented);
viewRouter.get('/space/:name/:slug', unimplemented);
viewRouter.get('/:slug', answers);
export default viewRouter;

View file

@ -1,6 +1,7 @@
////////////////////////////////////////////////////////
// IMPORTS
////////////////////////////////////////////////////////
// eslint-disable-next-line no-unused-vars
import dotenv from 'dotenv/config'; // importing .env vars
import app from './app.js';
import log from './utils/log.js';