- basic plugin system for confserver - allows adding api via plugins that can be saved in user data/plugins folder - relocated routes into internal plugins - add start_site to replace start_server - changed init code for starting confserver, this with the above fixes an issue of initializing the app twice
13 lines
210 B
Python
13 lines
210 B
Python
#!/usr/bin/env python3
|
|
import asyncio
|
|
from aiohttp import web
|
|
|
|
class ConfServerApp():
|
|
name = None
|
|
plugin_type = None
|
|
path_prefix = None
|
|
app = None
|
|
sub_api = None
|
|
routes = None
|
|
|
|
|