diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-07-10 15:59:31 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-07-10 15:59:31 +0200 |
commit | ad895d7ee327056d3259ef3ec72b715cfcfca870 (patch) | |
tree | 4597e1da7c5b5738a430c17371c14153831053dc /bin/efa-gw | |
parent | 5d01d9b3a512c434437524ba658ea15dba594f75 (diff) |
re-add legacy eva.json route
Diffstat (limited to 'bin/efa-gw')
-rwxr-xr-x | bin/efa-gw | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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)] |