mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
fix api-bug
This commit is contained in:
parent
1a27f64197
commit
441e14539d
@ -43,8 +43,9 @@ module.exports = function (app, config) {
|
||||
app.post('/client/register', (req, res) => {
|
||||
const data = req.body;
|
||||
const clientIp = req.ip;
|
||||
console.log(data);
|
||||
clientStrategyStore.insert(data.appName, data.strategies)
|
||||
.then(() => clientStrategyStore.insert({
|
||||
.then(() => clientInstanceStore.insert({
|
||||
appName: data.appName,
|
||||
instanceId: data.instanceId,
|
||||
clientIp,
|
||||
|
Loading…
Reference in New Issue
Block a user