53 lines
1.2 KiB
JavaScript
53 lines
1.2 KiB
JavaScript
import { Router } from 'express';
|
|
const router = new Router();
|
|
import path from 'path';
|
|
import { renderIndex } from '../views/index';
|
|
|
|
// this is intended to be a temporary file
|
|
// until i figure out isomorphic rendering
|
|
|
|
router.route('/').get((req, res) => {
|
|
res.send(renderIndex());
|
|
});
|
|
|
|
router.route('/signup').get((req, res) => {
|
|
res.send(renderIndex());
|
|
});
|
|
|
|
router.route('/projects/:project_id').get((req, res) => {
|
|
res.send(renderIndex());
|
|
});
|
|
|
|
router.route('/:username/sketches/:project_id').get((req, res) => {
|
|
res.send(renderIndex());
|
|
});
|
|
|
|
// router.route('/full/:project_id').get((req, res) => {
|
|
// res.send(renderIndex());
|
|
// });
|
|
|
|
router.route('/login').get((req, res) => {
|
|
res.send(renderIndex());
|
|
});
|
|
|
|
router.route('/reset-password').get((req, res) => {
|
|
res.send(renderIndex());
|
|
});
|
|
|
|
router.route('/reset-password/:reset_password_token').get((req, res) => {
|
|
res.send(renderIndex());
|
|
});
|
|
|
|
router.route('/sketches').get((req, res) => {
|
|
res.send(renderIndex());
|
|
});
|
|
|
|
router.route('/about').get((req, res) => {
|
|
res.send(renderIndex());
|
|
});
|
|
|
|
router.route('/:username/sketches').get((req, res) => {
|
|
res.send(renderIndex());
|
|
});
|
|
|
|
export default router;
|