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:
parent
b061569bce
commit
de8247e14e
1 changed files with 3 additions and 1 deletions
|
@ -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/")),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue