Skip to content

Commit

Permalink
Merge branch 'refactor' of github.com:databio/bedhost into refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Sep 3, 2023
2 parents 34863a6 + 2da9df2 commit b7d9fd0
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,8 @@ For development, you can now also run it with `uvicorn`, which gives you auto-re
source ../bedboss/environment/production.env
BEDBASE_CONFIG=../bedbase.org/config/bedbase.yaml uvicorn bedhost.main:app --reload
```
Using a local config:
BEDBASE_CONFIG=../bbconf/tests/data/config.yaml uvicorn bedhost.main:app --reload
2 changes: 1 addition & 1 deletion bedhost/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.2"
__version__ = "0.2.0-dev"
8 changes: 1 addition & 7 deletions bedhost/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@
# uncomment below for development, to allow cross origin resource sharing
app.add_middleware(
CORSMiddleware,
allow_origins=[
"http://localhost:3000",
"http://localhost:8000",
"http://dev1.bedbase.org",
"http://data.bedbase.org",
"http://bedbase.org",
],
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down
7 changes: 7 additions & 0 deletions bedhost/routers/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@ async def get_image_for_bedfile(
return serve_file(path, remote)


@router.get("/search/{query}")
async def text_to_bed_search(
query: str = Query(..., description="Search query string")
):
return bbc.t2bsi.nl_search(query)


@router.get("/bed/{md5sum}/img_path/{id}")
async def get_image_path_for_bedfile(
md5sum: str = bd,
Expand Down
14 changes: 11 additions & 3 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format.

## [0.1.2] -- 2023-2-6
## [0.2.0] -- Unreleased
- remove all graphql
- remove local static hosting of UI
- update to new pipestat-based bbconf (pending)

## [0.1.3] -- 2023-09-0
- allow all origins

## [0.1.2] -- 2023-02-06
### change
- change `/bedset/my_bedset/file_paths`endpoint from GET to POST
- change `/bedset/my_bedset/file_paths`endpoint from GET to POST

## [0.1.1] -- 2021-10-30
### change
- `/bed/genomes` and `bedset/genomes`: impove speed
- `/bed/genomes` and `bedset/genomes`: impove speed

## [0.1.0] -- 2021-10-25
### add
Expand Down

0 comments on commit b7d9fd0

Please sign in to comment.