From de8247e14e9c406f618f7280d8774a55ab321f98 Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 5 Jun 2024 16:59:44 +0200 Subject: [PATCH] feat(urls): add server routes and root redirect Added routing for server-related URLs and a redirect from the root URL to the servers page. This change improves navigation within the CoffeeMachine app, making it more intuitive for users to find the server management section right from the homepage. It directly impacts user experience by streamlining access to the servers list without additional navigation steps. --- coffeemachine/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coffeemachine/urls.py b/coffeemachine/urls.py index 12ee624..00fc504 100644 --- a/coffeemachine/urls.py +++ b/coffeemachine/urls.py @@ -16,8 +16,10 @@ Including another URLconf """ from django.contrib import admin from django.urls import path, include +from django.views.generic import RedirectView urlpatterns = [ path('admin/', admin.site.urls), - + path('servers/', include("coffeemachine.servers.urls")), + path('', RedirectView.as_view(url="servers/")), ]