Skip to content

Commit

Permalink
use default wemi parameter in get
Browse files Browse the repository at this point in the history
  • Loading branch information
wmelder committed Jul 10, 2024
1 parent 88ef69a commit c0d1e3f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/apis/resource/resource_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
500: "Server error",
}
)
@api.route(
"id/<any(program, series, season, scene):cat_type>/<int:identifier>",
defaults={"wemi": None},
endpoint="dereference",
)
@api.route(
"id/<any(program, series, season, scene):cat_type>/<int:identifier>/<any(work, expression, manifestation, item):wemi>",
endpoint="dereference",
Expand All @@ -39,7 +34,7 @@ class ResourceAPI(Resource):
"""Serve the RDF for the media catalog resources in the format that was requested."""

@api.produces([mt.value for mt in MimeType])
def get(self, identifier, wemi, cat_type="program"):
def get(self, identifier, cat_type="program", wemi=None):
lod_server_supported_mime_types = [mt.value for mt in MimeType]
best_match = request.accept_mimetypes.best_match(
lod_server_supported_mime_types
Expand Down

0 comments on commit c0d1e3f

Please sign in to comment.