Compare commits
No commits in common. "983d4d668f811e3bae1de53fbb23d9924b278bc8" and "254cb6004b57a04c44730401a61bfb64f29d89e9" have entirely different histories.
983d4d668f
...
254cb6004b
@ -287,12 +287,11 @@ def create_app(
|
|||||||
max_file_size=max_file_size,
|
max_file_size=max_file_size,
|
||||||
upload_folder_quota=upload_folder_quota,
|
upload_folder_quota=upload_folder_quota,
|
||||||
)
|
)
|
||||||
pathlib.Path(upload_path).mkdir(parents=True, exist_ok=True)
|
|
||||||
app.add_routes(
|
app.add_routes(
|
||||||
[
|
[
|
||||||
web.get("/", handle_index),
|
web.get("/", handle_index),
|
||||||
web.post("/upload", handle_upload),
|
web.post("/upload", handle_upload),
|
||||||
web.static("/uploads", upload_path),
|
web.static("/uploads", "uploads"),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
return app
|
return app
|
||||||
|
Loading…
Reference in New Issue
Block a user