This commit is contained in:
Hadrian Burkhardt
2023-11-30 04:26:43 +01:00
committed by f4lco
parent 58a53e608f
commit 9e37940334
6 changed files with 174 additions and 15 deletions
+3 -1
View File
@@ -45,6 +45,7 @@ def get_menu():
log.debug("Downloading menu for SWP")
return SWP_Webspeiseplan_API()
@app.route("/canteens/<canteen_name>")
@app.route("/canteens/<canteen_name>/xml")
def canteen_xml_feed(canteen_name):
@@ -63,9 +64,10 @@ def canteen_xml_feed(canteen_name):
)
xml = swp_parser.xml_feed.decode()
response = make_response(xml)
response.mimetype = 'text/xml'
response.mimetype = "text/xml"
return response
@app.route("/")
@app.route("/canteens")
def canteen_index():