Easy subfolder mounting
1 files changed, 6 insertions(+), 2 deletions(-) M main.py
M main.py => main.py +6 -2
@@ 39,8 39,12 @@ async def get_sticker(request): return result app = web.Application() app.add_routes([web.get('/{pack},{key}', get_pack), web.get('/{pack},{key}/{sticker}', get_sticker)]) app.add_routes([ web.get('/{pack},{key}', get_pack), web.get('/{pack},{key}/{sticker}', get_sticker), web.get('/{subdir}/{pack},{key}', get_pack), web.get('/{subdir}/{pack},{key}/{sticker}', get_sticker) ]) if __name__ == '__main__': web.run_app(app, path=sys.argv[1])