mirror of
https://github.com/zyachel/quetre.git
synced 2025-04-03 04:57:37 +03:00
20 lines
533 B
JavaScript
20 lines
533 B
JavaScript
import express from 'express';
|
|
import {
|
|
about,
|
|
answeredQuestion,
|
|
privacy,
|
|
unansweredQuestion,
|
|
unimplemented,
|
|
} from '../controllers/viewController.js';
|
|
|
|
const viewRouter = express.Router();
|
|
|
|
viewRouter.get('/', about);
|
|
viewRouter.get('/privacy', privacy);
|
|
viewRouter.get('/search', unimplemented);
|
|
viewRouter.get('/profile/:name', unimplemented);
|
|
viewRouter.get('/topic/:name', unimplemented);
|
|
viewRouter.get('/unanswered/:slug', unansweredQuestion);
|
|
viewRouter.get('/:slug', answeredQuestion);
|
|
|
|
export default viewRouter;
|