Compare commits
2 Commits
f964aa380e
...
2ba6aa64d2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2ba6aa64d2 | ||
![]() |
cc36b46fd7 |
@@ -31,6 +31,6 @@ jobs:
|
||||
uses: dokku/github-action@master
|
||||
with:
|
||||
branch: 'main'
|
||||
git_remote_url: 'ssh://dokku@stagging.discours.io:22/uploader'
|
||||
git_remote_url: 'ssh://dokku@staging.discours.io:22/uploader'
|
||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
||||
|
2
main.py
2
main.py
@@ -59,7 +59,7 @@ async def upload_handler(request: Request):
|
||||
return JSONResponse({'error': 'Failed to upload file'}, status_code=500)
|
||||
|
||||
routes = [
|
||||
Route('/upload', upload_handler, methods=['POST']),
|
||||
Route('/', upload_handler, methods=['POST']),
|
||||
]
|
||||
|
||||
app = Starlette(debug=True, routes=routes)
|
||||
|
Reference in New Issue
Block a user