freeCodeCamp/api-server/server/boot/restApi.js

7 lines
214 B
JavaScript
Raw Normal View History

module.exports = function mountRestApi(app) {
2018-09-13 17:28:23 +00:00
const restApi = app.loopback.rest();
const restApiRoot = app.get('restApiRoot');
app.use(restApiRoot, restApi);
app.use(`/internal${restApiRoot}`, restApi);
2015-06-03 00:27:02 +00:00
};