Skip to content

Commit

Permalink
Add /api/version to mock API (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstrelow committed Feb 1, 2018
1 parent 042e5e6 commit c02955b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/app/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,12 @@ module.exports = function (app, port) {
});
}, 500);
}
)
);

/*
VERSION
*/
app.get('/api/version', function(req, res) {
res.sendFile(path.join(__dirname, './version.json'))
});
};
4 changes: 4 additions & 0 deletions frontend/app/api/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version": "Mock API 1.23-RC4",
"development": true
}

0 comments on commit c02955b

Please sign in to comment.