summaryrefslogtreecommitdiff
path: root/bin/efa-gw
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-07-10 15:59:31 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-07-10 15:59:31 +0200
commitad895d7ee327056d3259ef3ec72b715cfcfca870 (patch)
tree4597e1da7c5b5738a430c17371c14153831053dc /bin/efa-gw
parent5d01d9b3a512c434437524ba658ea15dba594f75 (diff)
re-add legacy eva.json route
Diffstat (limited to 'bin/efa-gw')
-rwxr-xr-xbin/efa-gw6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/efa-gw b/bin/efa-gw
index ecec5f5..39d4866 100755
--- a/bin/efa-gw
+++ b/bin/efa-gw
@@ -166,6 +166,12 @@ if __name__ == "__main__":
eva_to_name[int(eva)] = name, optid
app = web.Application()
+
+ # legacy route
+ app.add_routes(
+ [web.get(f"{args.prefix}{{eva}}.json", get_occupancy_by_eva)]
+ )
+
app.add_routes([web.get(f"{args.prefix}departures", get_departures)])
app.add_routes(
[web.get(f"{args.prefix}occupancy-by-eva/{{eva}}.json", get_occupancy_by_eva)]