76bd1b1630
* Add ability to delete projects from sketch list - Fixes #76 - Also gets rid of outdated Sketch module * Styling for Sketch List trash can * Merge all the stuff * Fix trash can line height
18 lines
600 B
JavaScript
18 lines
600 B
JavaScript
import { Router } from 'express';
|
|
import * as ProjectController from '../controllers/project.controller';
|
|
|
|
const router = new Router();
|
|
|
|
router.route('/projects').post(ProjectController.createProject);
|
|
|
|
router.route('/projects/:project_id').put(ProjectController.updateProject);
|
|
|
|
router.route('/projects/:project_id').get(ProjectController.getProject);
|
|
|
|
router.route('/projects/:project_id').delete(ProjectController.deleteProject);
|
|
|
|
router.route('/projects').get(ProjectController.getProjects);
|
|
|
|
router.route('/:username/projects').get(ProjectController.getProjectsForUser);
|
|
|
|
export default router;
|