dubdiff/server/api/comparison/index.js

19 lines
481 B
JavaScript
Raw Normal View History

'use strict';
var express = require('express');
var controller = require('./comparison.controller');
var router = express.Router();
//router.get('/', controller.index);
router.get('/:id', controller.showComparison);
2015-05-26 16:41:06 +02:00
//router.get('/:id/:doc', controller.showComparisonDoc);
router.get('/wdiff/:id', controller.wdiffMarkdownComparison);
2015-05-26 16:41:06 +02:00
//router.get('/wdiff/:id/nomarkdown', controller.wdiffNoMarkdownComparison);
router.post('/', controller.create);
module.exports = router;