mirror of
https://github.com/zyachel/quetre.git
synced 2025-04-04 05:27:36 +03:00
fix(routes): add unimplemented error message to space
route
This commit is contained in:
parent
e35f4c699a
commit
8820f36af8
4 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-unused-vars */
|
||||
/* eslint-disable no-param-reassign */
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue