mirror of
https://github.com/ZuneDev/PyZuneCatalogServer.git
synced 2026-07-27 13:11:13 -07:00
Added default route
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import mimetypes
|
||||
import urllib.request
|
||||
import urllib.error
|
||||
from xml.dom.minidom import Document, Element
|
||||
@@ -36,6 +37,11 @@ def allow_zunestk_cors(response):
|
||||
return response
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def default():
|
||||
return Response("Welcome to the Social", mimetype="text/plain")
|
||||
|
||||
|
||||
@app.route(f"/v3.2/<string:locale>/hubs/music")
|
||||
def hubs_music(locale: str):
|
||||
with open(f'reference/catalog.zune.net_v3.2_{locale}_hubs_music.xml', 'r') as file:
|
||||
|
||||
Reference in New Issue
Block a user