Skip to content

Commit

Permalink
Added head routers for trackhub
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Oct 22, 2024
1 parent efee88c commit e29b4df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bedhost/routers/bedset_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ async def get_bedfiles_in_bedset(
return bbagent.bedset.get_bedset_bedfiles(bedset_id)


@router.head("/{bedset_id}/track_hub")
@router.get("/{bedset_id}/track_hub")
async def get_track_hub_bedset(request: Request, bedset_id: str):
"""
Expand All @@ -128,6 +129,7 @@ async def get_track_hub_bedset(request: Request, bedset_id: str):
return Response(hub_txt, media_type="text/plain")


@router.head("/{bedset_id}/track_hub_genome_file", include_in_schema=False)
@router.get("/{bedset_id}/track_hub_genome_file", include_in_schema=False)
async def get_genomes_file_bedset(request: Request, bedset_id: str):
"""
Expand All @@ -143,6 +145,7 @@ async def get_genomes_file_bedset(request: Request, bedset_id: str):
return Response(genome_txt, media_type="text/plain")


@router.head("/{bedset_id}/track_hub_trackDb_file", include_in_schema=False)
@router.get("/{bedset_id}/track_hub_trackDb_file", include_in_schema=False)
async def get_trackDb_file_bedset(bedset_id: str):
"""
Expand Down

0 comments on commit e29b4df

Please sign in to comment.