added single get search with url parsing

This commit is contained in:
Manuel Hude
2020-11-29 14:02:01 +01:00
parent 39f0beb87e
commit 461a42edcd
3 changed files with 6 additions and 10 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ def get_image(identifier):
print("Getting image with identifier "+identifier)
baseurl = "http://127.0.0.1:8000"
get_url = "/image/get?id="+identifier
get_url = "/image/get/"+identifier
try:
response = requests.get(baseurl + get_url)
@@ -57,7 +57,7 @@ def get_all():
print("Getting all images")
baseurl = "http://127.0.0.1:8000"
get_url = "/image/get"
get_url = "/image/get/all"
try:
response = requests.get(baseurl + get_url)