Skip to content

Commit

Permalink
More Fixes
Browse files Browse the repository at this point in the history
Co-authored-by: Donatello G Carboni <[email protected]>
  • Loading branch information
JordanTimberlake and Donatello-Carboni committed Sep 30, 2024
1 parent 47c3996 commit ce1d64d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Backend/Django/testApp/templates/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,22 @@ <h1>LINUX</h1>
<div class="downloadOption" id="agent">
<h1>AGENT INSTALLER</h1>
<a href="http://206.189.188.197:8006/agent" class="button"
>Initiate Download</a
>Download</a
>
</div>
</div>
<div class="downloadOption">
<h1>REQUIREMENTS.TXT</h1>
<a href="http://206.189.188.197:8006/requirements" class="button"
>Download</a
>
</div>
<div class="downloadOption">
<h1>Test Videos</h1>
<a href="http://206.189.188.197:8006/testVid" class="button"
>Download</a
>
</div>
</section>

<footer>
Expand Down Expand Up @@ -240,4 +252,4 @@ <h1>AGENT INSTALLER</h1>
});
</script>
</body>
</html>
</html>
10 changes: 10 additions & 0 deletions Broker/API/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ def linux():
filepath = "./package/HighViz-1.0.0.AppImage"
return FileResponse(filepath, filename="HighViz.AppImage")

@app.get("/requirements")
def requirements():
filepath = "./package/requirements.txt"
return FileResponse(filepath, filename="requirements.txt")

@app.get("/testVid")
def testVid():
filepath = "./package/testVidCarla.mp4"
return FileResponse(filepath, filename="testVidCarla.mp4")

@app.post("/test")
async def test(request: Request):
message = await request.json()
Expand Down

0 comments on commit ce1d64d

Please sign in to comment.