mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
export all server objects to a file for static deployments and demo for logo
This commit is contained in:
@@ -15,12 +15,16 @@ if 'YACV_DISABLE_SERVER' not in os.environ:
|
||||
# the environment variable YACV_DISABLE_SERVER to a non-empty value
|
||||
server.start()
|
||||
|
||||
# Expose some nice aliases using the default server instance
|
||||
show = server.show
|
||||
show_object = show
|
||||
|
||||
|
||||
def _get_app() -> web.Application:
|
||||
"""Required by aiohttp-devtools"""
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
from logo.logo import build_logo
|
||||
server.show_object(build_logo(), 'logo')
|
||||
server.show_cad(build_logo(), 'logo')
|
||||
return server.app
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user