Skip to content

Commit

Permalink
Refactor main.py to handle error responses with appropriate status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeisraeljohn committed Sep 19, 2024
1 parent 6aa210d commit e3bdf0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 107 deletions.
105 changes: 0 additions & 105 deletions main.py

This file was deleted.

8 changes: 6 additions & 2 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"version": 2,
"builds": [{ "src": "main.py", "use": "@vercel/python" }],
"routes": [{ "src": "/(.*)", "dest": "main.py" }]
"functions": {
"api/main.py": {
"runtime": "python3.12"
}
},
"routes": [{ "src": "/(.*)", "dest": "/api/main.py" }]
}

0 comments on commit e3bdf0c

Please sign in to comment.