Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix: return obj and mtl path
Browse files Browse the repository at this point in the history
  • Loading branch information
uysalibov committed Mar 6, 2024
1 parent 2f59db9 commit 1d2c68b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions marble-sculp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,13 @@ async def extend1d(request: Request, payload: DiscModel):
)
scene.convert_obj(filename="extend1d/" + payload.filename)

return JSONResponse(
{
"obj": f"/static/extend1d/{payload.filename}.obj",
"mtl": f"/static/extend1d/{payload.filename}.mtl",
}
)


if __name__ == "__main__":
uvicorn.run("api:app", reload=True, workers=5)

0 comments on commit 1d2c68b

Please sign in to comment.