Commit
·
35f022f
1
Parent(s):
04a7d0b
Code Updates & Optimisations
Browse files
FileStream/server/APP/__init__.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
from aiohttp import web
|
| 2 |
from aiohttp.http_exceptions import BadStatusLine
|
| 3 |
|
|
@@ -12,7 +13,7 @@ from FileStream.Exceptions import FIleNotFound, InvalidHash
|
|
| 12 |
async def handle_v2(request):
|
| 13 |
return web.Response(text="Hello from app v2!")
|
| 14 |
|
| 15 |
-
static_dir = os.path.join("FileStream
|
| 16 |
sub_app.router.add_static('/static/', path=static_dir, name='static')
|
| 17 |
|
| 18 |
sub_app = web.Application()
|
|
|
|
| 1 |
+
import os
|
| 2 |
from aiohttp import web
|
| 3 |
from aiohttp.http_exceptions import BadStatusLine
|
| 4 |
|
|
|
|
| 13 |
async def handle_v2(request):
|
| 14 |
return web.Response(text="Hello from app v2!")
|
| 15 |
|
| 16 |
+
static_dir = os.path.join("FileStream", "bot", "server", "template")
|
| 17 |
sub_app.router.add_static('/static/', path=static_dir, name='static')
|
| 18 |
|
| 19 |
sub_app = web.Application()
|
FileStream/server/APP/routes_app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
from aiohttp import web
|
| 2 |
from aiohttp.http_exceptions import BadStatusLine
|
| 3 |
|
|
|
|
| 1 |
+
import os
|
| 2 |
from aiohttp import web
|
| 3 |
from aiohttp.http_exceptions import BadStatusLine
|
| 4 |
|