summaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2020-11-20 12:35:26 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2020-11-20 12:36:50 +0100
commit346cc00e17443b8f72f5f683ceb5f6f63837bdb3 (patch)
treeb94d28a7b15a9454ef9ba6989893ad18eb8c045d /server.py
parent10e3d6874745283b545d3b8029a3e5e184932c5d (diff)
downloadtdde25-346cc00e17443b8f72f5f683ceb5f6f63837bdb3.tar.gz
remove show-area
Diffstat (limited to 'server.py')
-rw-r--r--server.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/server.py b/server.py
index 6a93018..97cb377 100644
--- a/server.py
+++ b/server.py
@@ -15,14 +15,6 @@ def index():
return read_html('templates/index.html')
-@get('/show-area')
-def show_area():
- rect = dict()
- for (k, node) in enumerate(store.select_nodes_in_rectangle(nodes, 58.3984, 58.3990, 15.5733, 15.576)):
- rect[node.id] = node.coord_tuple()
- return json.dumps(rect)
-
-
@post('/shortest-path')
def shortest_path(body):
body = json.loads(body)