Add config, runtime support for for serve.path

This commit is contained in:
Lance Edgar 2023-10-04 19:53:13 -05:00
parent 069289775e
commit d32ca9fc6a

View file

@ -83,9 +83,10 @@ class Serve(commands.Subcommand):
default='0.0.0.0')
port = self.config.getint('wuttapos', 'serve.port',
default=8332)
path = self.config.get('wuttapos', 'serve.path')
log.info(f"will serve WuttaPOS on http://{host}:{port}")
ft.app(target=main, view=None, host=host, port=port,
ft.app(name=path, target=main, view=None, host=host, port=port,
assets_dir=resource_path('wuttapos:assets'))