fix(api): Restructure
This commit is contained in:
@@ -0,0 +1,58 @@
|
|||||||
|
aiofiles==23.2.1
|
||||||
|
aiohttp==3.9.1
|
||||||
|
aiohttp-client-cache==0.10.0
|
||||||
|
aiosignal==1.3.1
|
||||||
|
aiosqlite==0.19.0
|
||||||
|
annotated-types==0.6.0
|
||||||
|
anyio==4.2.0
|
||||||
|
asttokens==2.4.1
|
||||||
|
async-timeout==4.0.3
|
||||||
|
attrs==23.1.0
|
||||||
|
click==8.1.7
|
||||||
|
comm==0.2.0
|
||||||
|
debugpy==1.8.0
|
||||||
|
decorator==5.1.1
|
||||||
|
EbookLib==0.18
|
||||||
|
exceptiongroup==1.2.0
|
||||||
|
executing==2.0.1
|
||||||
|
fastapi==0.108.0
|
||||||
|
frozenlist==1.4.1
|
||||||
|
h11==0.14.0
|
||||||
|
idna==3.6
|
||||||
|
ipykernel==6.28.0
|
||||||
|
ipython==8.19.0
|
||||||
|
itsdangerous==2.1.2
|
||||||
|
jedi==0.19.1
|
||||||
|
jupyter_client==8.6.0
|
||||||
|
jupyter_core==5.5.1
|
||||||
|
lxml==4.9.4
|
||||||
|
markdown-it-py==3.0.0
|
||||||
|
matplotlib-inline==0.1.6
|
||||||
|
mdurl==0.1.2
|
||||||
|
multidict==6.0.4
|
||||||
|
nest-asyncio==1.5.8
|
||||||
|
packaging==23.2
|
||||||
|
parso==0.8.3
|
||||||
|
pexpect==4.9.0
|
||||||
|
platformdirs==4.1.0
|
||||||
|
prompt-toolkit==3.0.43
|
||||||
|
psutil==5.9.7
|
||||||
|
ptyprocess==0.7.0
|
||||||
|
pure-eval==0.2.2
|
||||||
|
pydantic==2.5.3
|
||||||
|
pydantic_core==2.14.6
|
||||||
|
Pygments==2.17.2
|
||||||
|
python-dateutil==2.8.2
|
||||||
|
pyzmq==25.1.2
|
||||||
|
rich==13.7.0
|
||||||
|
six==1.16.0
|
||||||
|
sniffio==1.3.0
|
||||||
|
stack-data==0.6.3
|
||||||
|
starlette==0.32.0.post1
|
||||||
|
tornado==6.4
|
||||||
|
traitlets==5.14.0
|
||||||
|
typing_extensions==4.9.0
|
||||||
|
url-normalize==1.4.3
|
||||||
|
uvicorn==0.25.0
|
||||||
|
wcwidth==0.2.12
|
||||||
|
yarl==1.9.4
|
||||||
@@ -33,7 +33,7 @@ async def download_book(story_id: int):
|
|||||||
|
|
||||||
# Book is compiled
|
# Book is compiled
|
||||||
temp_file = tempfile.NamedTemporaryFile(
|
temp_file = tempfile.NamedTemporaryFile(
|
||||||
dir=".", suffix=".epub", delete=True
|
suffix=".epub", delete=True
|
||||||
) # Thanks https://stackoverflow.com/a/75398222
|
) # Thanks https://stackoverflow.com/a/75398222
|
||||||
|
|
||||||
# create epub file
|
# create epub file
|
||||||
@@ -57,4 +57,4 @@ app.mount("/", StaticFiles(directory=BUILD_PATH), "static")
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import uvicorn
|
import uvicorn
|
||||||
|
|
||||||
uvicorn.run(app, host="0.0.0.0", port=8084)
|
uvicorn.run(app, host="0.0.0.0", port=80)
|
||||||
Reference in New Issue
Block a user