Skip to content

Commit

Permalink
alter the react endpoint and remove not found fro /api
Browse files Browse the repository at this point in the history
  • Loading branch information
KamilPawel authored and KamilPawel committed Oct 2, 2023
1 parent d8a3f69 commit f94f0c9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions codeforlife/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,7 @@ def service_urlpatterns(
name="api",
),
re_path(
r"^api/.*",
lambda request: HttpResponse(
"API endpoint not found",
status=status.HTTP_404_NOT_FOUND,
),
name="api-endpoint-not-found",
),
re_path(
r".*",
r"^(?!.*api/).*",
lambda request: render(request, frontend_template_name),
name="frontend",
),
Expand Down

0 comments on commit f94f0c9

Please sign in to comment.