Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add urls for trophy overview
Roland Geiderdbb10ba92fcc
diff --git a/wger/trophies/urls.py b/wger/trophies/urls.pynew file mode 100644index 000000000..35434a0ff--- /dev/null+++ b/wger/trophies/urls.py@@ -0,0 +1,28 @@+# This file is part of wger Workout Manager.+#+# wger Workout Manager is free software: you can redistribute it and/or modify+# it under the terms of the GNU Affero General Public License as published by+# the Free Software Foundation, either version 3 of the License, or+# (at your option) any later version.+#+# wger Workout Manager is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU Affero General Public License+# along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.++# Django+from django.urls import re_path++# wger+from wger.core.views.react import ReactView++urlpatterns = [+ re_path(+ '',+ ReactView.as_view(),+ name='overview',+ ),+]diff --git a/wger/urls.py b/wger/urls.pyindex 3eb8b99ee..fefe77d5a 100644--- a/wger/urls.py+++ b/wger/urls.py@@ -52,7 +52,6 @@ from wger.trophies.api import views as trophies_api_viewsfrom wger.utils.generic_views import TextTemplateViewfrom wger.weight.api import views as weight_api_views-## REST API#@@ -279,6 +278,7 @@ urlpatterns = i18n_patterns(path('config/', include(('wger.config.urls', 'config'), namespace='config')),path('gym/', include(('wger.gym.urls', 'gym'), namespace='gym')),path('gallery/', include(('wger.gallery.urls', 'gallery'), namespace='gallery')),+ path('trophies/', include(('wger.trophies.urls', 'trophies'), namespace='trophies')),path('measurement/',include(('wger.measurements.urls', 'measurements'), namespace='measurements'),