mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
20 lines
495 B
JavaScript
20 lines
495 B
JavaScript
'use strict';
|
|
|
|
const apiDef = {
|
|
version: 1,
|
|
links: {
|
|
'feature-toggles': { uri: '/api/features' },
|
|
'strategies': { uri: '/api/strategies' },
|
|
'events': { uri: '/api/events' },
|
|
'client-register': { uri: '/api/client/register' },
|
|
'client-metrics': { uri: '/api/client/register' },
|
|
'seen-toggles': { uri: '/api/client/seen-toggles' },
|
|
},
|
|
};
|
|
|
|
module.exports = (app) => {
|
|
app.get('/', (req, res) => {
|
|
res.json(apiDef);
|
|
});
|
|
};
|