summaryrefslogtreecommitdiff
path: root/bin/efa-gw
diff options
context:
space:
mode:
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)]