mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
26 lines
557 B
JavaScript
26 lines
557 B
JavaScript
|
'use strict';
|
||
|
|
||
|
// export module version
|
||
|
require('pkginfo')(module, 'version');
|
||
|
const version = module.exports.version;
|
||
|
const clientApiDef = require('./client-api/api-def.json');
|
||
|
const adminApiDef = require('./admin-api/api-def.json');
|
||
|
|
||
|
const apiDef = {
|
||
|
name: 'unleash-server',
|
||
|
version,
|
||
|
uri: '/api',
|
||
|
links: {
|
||
|
admin: {
|
||
|
uri: '/api/admin',
|
||
|
links: adminApiDef.links,
|
||
|
},
|
||
|
client: {
|
||
|
uri: '/api/client',
|
||
|
links: clientApiDef.links,
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
module.exports = apiDef;
|