add controller options to allow multiple routes per controller

This commit is contained in:
Jakob Ketterl
2020-02-23 18:32:37 +01:00
parent 42191f4e77
commit aa9737498a
8 changed files with 24 additions and 25 deletions

View File

@ -35,7 +35,7 @@ class AssetsController(Controller):
except FileNotFoundError:
self.send_response("file not found", code=404)
def handle_request(self):
def indexAction(self):
filename = self.request.matches.group(1)
self.serve_file(filename)