changed folder for static
Browse files
main.py
CHANGED
@@ -7,8 +7,6 @@ from schema import Answer
|
|
7 |
logger = logging.getLogger()
|
8 |
logging.basicConfig(encoding='utf-8', level=logging.INFO)
|
9 |
|
10 |
-
from pathlib import Path
|
11 |
-
|
12 |
from fastapi import FastAPI, Request
|
13 |
from fastapi.responses import HTMLResponse, JSONResponse
|
14 |
from fastapi.middleware.cors import CORSMiddleware
|
@@ -27,8 +25,8 @@ import arel
|
|
27 |
async def reload_data():
|
28 |
print("Reloading server data...")
|
29 |
|
30 |
-
static_path = "
|
31 |
-
template_path = "
|
32 |
|
33 |
hotreload = arel.HotReload(
|
34 |
paths=[
|
|
|
7 |
logger = logging.getLogger()
|
8 |
logging.basicConfig(encoding='utf-8', level=logging.INFO)
|
9 |
|
|
|
|
|
10 |
from fastapi import FastAPI, Request
|
11 |
from fastapi.responses import HTMLResponse, JSONResponse
|
12 |
from fastapi.middleware.cors import CORSMiddleware
|
|
|
25 |
async def reload_data():
|
26 |
print("Reloading server data...")
|
27 |
|
28 |
+
static_path = "static"
|
29 |
+
template_path = "templates"
|
30 |
|
31 |
hotreload = arel.HotReload(
|
32 |
paths=[
|