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