mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 12:05:39 -05:00
7 lines
214 B
JavaScript
7 lines
214 B
JavaScript
module.exports = function mountRestApi(app) {
|
|
const restApi = app.loopback.rest();
|
|
const restApiRoot = app.get('restApiRoot');
|
|
app.use(restApiRoot, restApi);
|
|
app.use(`/internal${restApiRoot}`, restApi);
|
|
};
|