Skip to content

Commit

Permalink
removed wrong path
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Sep 27, 2023
1 parent 24ac2cb commit 0a2056d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions openatlas/api/endpoints/iiif.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def get_manifest(id_: int) -> dict[str, Any]:
entity = get_entity_by_id(id_)
url_root = app.config['IIIF_URL'] or f"{request.url_root}iiif/"
# get metadata from the image api
print(f"{url_root}{app.config['IIIF_PREFIX']}{id_}/info.json")
req = requests.get(
f"{url_root}{app.config['IIIF_PREFIX']}{id_}/info.json")
image_api = req.json()
Expand Down
3 changes: 1 addition & 2 deletions openatlas/views/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def make_iiif_available(id_: int):


@app.route('/iiif/<int:id_>', methods=['GET'])
@app.route('/iiif/<prefix>/<int:id_>', methods=['GET'])
@required_group('contributor')
def view_iiif(id_: int, prefix: Optional[str] = None):
def view_iiif(id_: int):
return redirect(url_for('api.iiif_manifest', id_=id_))

0 comments on commit 0a2056d

Please sign in to comment.