Skip to content

Commit

Permalink
fix: administration routing
Browse files Browse the repository at this point in the history
  • Loading branch information
JSnow11 committed Dec 18, 2021
1 parent 05afcc1 commit ade471c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions decide/administration/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.conf.urls import url
from django.urls import path
from django.urls.conf import re_path

Expand All @@ -14,6 +15,6 @@
path('api/base/key', views.KeysAPI.as_view()),
path('api/base/key/<int:key_id>', views.KeyAPI.as_view()),

# match react-app routed pages
re_path(r'(^(?!(api)).*$)', views.index),
# react-app
url('', views.index)
]

0 comments on commit ade471c

Please sign in to comment.