OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/protractor/mocks/statuses-v2.js

12 lines
345 B

module.exports = function(app) {
var fs = require('fs');
var express = require('express');
var statusesRouter = express.Router();
statusesRouter.get('/', function(req, res) {
fs.readFile(__dirname + '/statuses.json', 'utf8', function(err, text) {
res.send(text);
});
});
app.use('/api/v2/statuses', statusesRouter);
};