~singpolyma/signal-sticker-proxy

adf7a53a9f9734750eee2425568a527eb686c7f8 — Stephen Paul Weber 11 months ago 64de737
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])