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.
This commit is contained in:
Kumi 2024-06-05 16:59:44 +02:00
parent b061569bce
commit de8247e14e
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -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/")),
]