Skip to content

Commit

Permalink
Update airzone.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Noltari committed Oct 26, 2023
1 parent 95cb059 commit f0954d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sim/airzone.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ def __init__(self):
routes = web.RouteTableDef()


@routes.get("/{tail:.*}")
async def root_get_handler(request):
"""GET root."""
raise web.HTTPInternalServerError()


@routes.post(f"/{API_V1}/demo")
async def demo_post_handler(request):
"""POST /demo."""
Expand Down Expand Up @@ -83,6 +77,12 @@ async def webserver_post_handler(request):
return await airzone.webserver.post(request)


@routes.get("/{tail:.*}")
async def root_get_handler(request):
"""GET root."""
raise web.HTTPInternalServerError()


@routes.post("/{tail:.*}")
async def root_post_handler(request):
"""POST root."""
Expand Down

0 comments on commit f0954d6

Please sign in to comment.