1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/packages/unleash-api/lib/routes/index.js
Ivar 7ae2b4b65d Introduces the /api path.
Some endpoints are provided on both / and /api
to support older clients.

Closes #162
2016-11-09 22:32:53 +01:00

17 lines
475 B
JavaScript

'use strict';
exports.createAPI = function (router, config) {
require('./event')(router, config);
require('./feature')(router, config);
require('./feature-archive')(router, config);
require('./strategy')(router, config);
require('./health-check')(router, config);
require('./metrics')(router, config);
};
exports.createLegacy = function (router, config) {
require('./feature')(router, config);
require('./health-check')(router, config);
};