Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Feb 10, 2021
1 parent 3a8cf0f commit 1016eff
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions app/api/shortcuts.py
Expand Up @@ -9,8 +9,10 @@


@blueprint.get("/images/<template_id>")
@doc.summary("Redirect to a example image")
@doc.response(302, doc.File(), description="Successfully redirected to a example image")
@doc.summary("Redirect to an example image")
@doc.response(
302, doc.File(), description="Successfully redirected to an example image"
)
@doc.response(404, str, description="Template not found")
@doc.response(501, str, description="Template not fully implemented")
async def example(request, template_id):
Expand Down Expand Up @@ -38,9 +40,11 @@ async def example(request, template_id):


@blueprint.get("/<template_id>.png")
@doc.summary("Redirect to a example image")
@doc.summary("Redirect to an example image")
@doc.exclude(settings.DEPLOYED)
@doc.response(302, doc.File(), description="Successfully redirected to a example image")
@doc.response(
302, doc.File(), description="Successfully redirected to an example image"
)
@doc.response(404, str, description="Template not found")
async def example_png(request, template_id):
template = models.Template.objects.get_or_none(template_id)
Expand All @@ -51,9 +55,11 @@ async def example_png(request, template_id):


@blueprint.get("/<template_id>.jpg")
@doc.summary("Redirect to a example image")
@doc.summary("Redirect to an example image")
@doc.exclude(settings.DEPLOYED)
@doc.response(302, doc.File(), description="Successfully redirected to a example image")
@doc.response(
302, doc.File(), description="Successfully redirected to an example image"
)
@doc.response(404, str, description="Template not found")
async def example_jpg(request, template_id):
template = models.Template.objects.get_or_none(template_id)
Expand All @@ -64,9 +70,11 @@ async def example_jpg(request, template_id):


@blueprint.get("/<template_id>")
@doc.summary("Redirect to a example image")
@doc.summary("Redirect to an example image")
@doc.exclude(settings.DEPLOYED)
@doc.response(302, doc.File(), description="Successfully redirected to a example image")
@doc.response(
302, doc.File(), description="Successfully redirected to an example image"
)
async def example_legacy(request, template_id):
return response.redirect(f"/images/{template_id}")

Expand Down

0 comments on commit 1016eff

Please sign in to comment.