summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/efa-gw3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/efa-gw b/bin/efa-gw
index ecb091a..fc6e949 100755
--- a/bin/efa-gw
+++ b/bin/efa-gw
@@ -72,9 +72,10 @@ if __name__ == "__main__":
"--eva-csv", type=str, metavar="FILE", default="haltestellenMitEva.csv"
)
parser.add_argument("--port", type=int, metavar="PORT", default=8080)
+ parser.add_argument("--prefix", type=str, metavar="PATH", default="/")
args = parser.parse_args()
eva_to_name = load_eva_to_name(args.eva_csv)
app = web.Application()
- app.add_routes([web.get("/{eva}.json", handle_eva)])
+ app.add_routes([web.get(f"{args.prefix}{{eva}}.json", handle_eva)])
web.run_app(app, host="localhost", port=args.port)