Spaces:
Running
Running
Commit
·
04a7d0b
1
Parent(s):
c29dc6c
Code Updates & SeveralFixes
Browse files
FileStream/server/APP/__init__.py
CHANGED
@@ -12,6 +12,9 @@ from FileStream.Exceptions import FIleNotFound, InvalidHash
|
|
12 |
async def handle_v2(request):
|
13 |
return web.Response(text="Hello from app v2!")
|
14 |
|
|
|
|
|
|
|
15 |
sub_app = web.Application()
|
16 |
sub_app.router.add_get('/', handle_v2)
|
17 |
sub_app.router.add_get('/watch/{path}', stream_handler)
|
|
|
12 |
async def handle_v2(request):
|
13 |
return web.Response(text="Hello from app v2!")
|
14 |
|
15 |
+
static_dir = os.path.join("FileStream\bot\server", "template")
|
16 |
+
sub_app.router.add_static('/static/', path=static_dir, name='static')
|
17 |
+
|
18 |
sub_app = web.Application()
|
19 |
sub_app.router.add_get('/', handle_v2)
|
20 |
sub_app.router.add_get('/watch/{path}', stream_handler)
|
FileStream/server/template/play.html
CHANGED
@@ -166,6 +166,6 @@
|
|
166 |
});
|
167 |
</script>
|
168 |
<script src="https://cdn.plyr.io/3.6.9/plyr.js"></script>
|
169 |
-
<script src="owner.js"></script>
|
170 |
|
171 |
</html>
|
|
|
166 |
});
|
167 |
</script>
|
168 |
<script src="https://cdn.plyr.io/3.6.9/plyr.js"></script>
|
169 |
+
<script type="text/javascript" src="/static/owner.js" ></script>
|
170 |
|
171 |
</html>
|