Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon committed Aug 22, 2023
1 parent 6fa27a7 commit ec53af6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,8 @@ async def reverse_proxy(request: Request) -> Response:


# Routes
@app.get("/api/hello")
def read_root():
return {"Hello": "World"}


@app.get("/api/search")
async def search(geneSymbol: str = Query(...), genomeRelease: str = Query("hg19")):
details = {"geneSymbol": geneSymbol, "genomeRelease": genomeRelease}
return JSONResponse(content=details)


#: pragma: no cover
if SERVE_FRONTEND:
print(f"SERVE_FRONTEND = {SERVE_FRONTEND}", file=sys.stderr)
app.mount("/ui", StaticFiles(directory=SERVE_FRONTEND), name="app")
Expand Down

0 comments on commit ec53af6

Please sign in to comment.