added bugis.server package
This commit is contained in:
12
server/example/test_server.py
Normal file
12
server/example/test_server.py
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
from bugis.core import BugisApp
|
||||
from pathlib import PurePath
|
||||
from bugis.server.server import static_resources
|
||||
import os
|
||||
|
||||
root = os.getenv('STATIC_ROOT') or '.'
|
||||
app = BugisApp()
|
||||
|
||||
static_resources(app, '/view', root)
|
||||
|
||||
|
Reference in New Issue
Block a user