Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
communications-backbone
Commits
2189e2f0
Unverified
Commit
2189e2f0
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: correct client post endpoint
parent
298299d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
endpoints/clients.py
endpoints/clients.py
+2
-2
No files found.
endpoints/clients.py
View file @
2189e2f0
...
...
@@ -132,9 +132,9 @@ class ClientList(Resource):
if
errors
:
abort
(
400
,
message
=
str
(
errors
))
client
=
clients_file
.
find
(
args
[
"client_id"
])
client
=
self
.
clients_file
.
find
(
args
[
"client_id"
])
if
client
:
abort
(
403
,
message
=
"Duplicate client id: {}"
.
format
(
client_id
))
else
:
client
=
clients_file
.
add
(
args
)
client
=
self
.
clients_file
.
add
(
args
)
return
client
,
201
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment