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

Closes #162
2020-02-20 08:30:37 +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);
};