We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd1002 commit e0d1b7fCopy full SHA for e0d1b7f
app.py
@@ -111,6 +111,17 @@ async def dynamic_github_route(request: Request, path: str):
111
})
112
113
114
+@app.post("/{path:path}", response_class=HTMLResponse)
115
+async def dynamic_github_route_post(
116
+ request: Request,
117
+ path: str,
118
+ repo_url: str = Form(...),
119
+ additional_instructions_hidden: str = Form("")
120
+):
121
+ """Handle POST requests for GitHub-style URLs, reusing the generate_dockerfile logic."""
122
+ return await generate_dockerfile(request, repo_url, additional_instructions_hidden)
123
+
124
125
@app.post("/", response_class=HTMLResponse)
126
async def generate_dockerfile(
127
request: Request,
0 commit comments