mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-10-22 03:32:00 +00:00
Fix Incorrect Api status codes
Update Incorrect status code based off the api schema
This commit is contained in:
parent
f327c1e825
commit
ef69be2036
1 changed files with 3 additions and 3 deletions
|
|
@ -181,7 +181,7 @@ router
|
|||
return internalUser.setPassword(res.locals.access, payload);
|
||||
})
|
||||
.then((result) => {
|
||||
res.status(201)
|
||||
res.status(200)
|
||||
.send(result);
|
||||
})
|
||||
.catch(next);
|
||||
|
|
@ -212,7 +212,7 @@ router
|
|||
return internalUser.setPermissions(res.locals.access, payload);
|
||||
})
|
||||
.then((result) => {
|
||||
res.status(201)
|
||||
res.status(200)
|
||||
.send(result);
|
||||
})
|
||||
.catch(next);
|
||||
|
|
@ -238,7 +238,7 @@ router
|
|||
.post((req, res, next) => {
|
||||
internalUser.loginAs(res.locals.access, {id: parseInt(req.params.user_id, 10)})
|
||||
.then((result) => {
|
||||
res.status(201)
|
||||
res.status(200)
|
||||
.send(result);
|
||||
})
|
||||
.catch(next);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue