2015-04-12 08:42:47 +02:00
|
|
|
'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);
|
2015-04-12 08:42:47 +02:00
|
|
|
router.get('/wdiff/:id', controller.wdiffMarkdownComparison);
|
2015-05-26 16:41:06 +02:00
|
|
|
//router.get('/wdiff/:id/nomarkdown', controller.wdiffNoMarkdownComparison);
|
2015-04-12 08:42:47 +02:00
|
|
|
|
|
|
|
router.post('/', controller.create);
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = router;
|