Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
balancer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
510435a1
authored
Apr 03, 2023
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add datacenter to delete method
parent
9f1521e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.py
+2
-2
No files found.
main.py
View file @
510435a1
...
@@ -54,9 +54,9 @@ def proxy_get(
...
@@ -54,9 +54,9 @@ def proxy_get(
@app.delete
(
"/lb/{server_path:path}"
)
@app.delete
(
"/lb/{server_path:path}"
)
def
proxy_delete
(
def
proxy_delete
(
server_path
:
str
=
"/"
,
username
=
Depends
(
get_current_user
),
body
=
Body
()
server_path
:
str
=
"/"
,
username
=
Depends
(
get_current_user
),
datacenter
:
str
=
""
):
):
return
proxy_datacenters
(
server_path
,
username
,
body
=
body
,
method
=
"DELETE"
)
return
proxy_datacenters
(
server_path
,
username
,
method
=
"DELETE"
,
datacenter
=
datacenter
)
@app.post
(
"/lb/rr/{server_path:path}"
)
@app.post
(
"/lb/rr/{server_path:path}"
)
...
...
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