"""
URL configuration for vaycancy project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import include, path

from comingsoon import views

urlpatterns = [
    path('favicon.ico', views.favicon, name='favicon'),
    path('robots.txt', views.robots_txt, name='robots-txt'),
    path('sitemap.xml', views.sitemap_xml, name='sitemap-xml'),
    path('admin/', views.vayadmin_login, name='legacy-admin-login'),
    path('accounts/', include('allauth.urls')),
    path('join/', views.join, name='join'),
    path('logout/', views.logout_view, name='logout'),
    path('workspace/', views.workspace, name='workspace'),
    path('vayadmin/', views.workspace, name='vayadmin'),
    path('vayadmin/login/', views.vayadmin_login, name='vayadmin-login'),
    path('workspace/team/create/', views.team_create, name='team-create'),
    path('workspace/team/<int:member_id>/edit/', views.team_edit, name='team-edit'),
    path('workspace/team/<int:member_id>/delete/', views.team_delete, name='team-delete'),
    path('workspace/message/<int:message_id>/read/', views.message_read, name='message-read'),
    path('vayadmin/settings/', views.site_settings_update, name='site-settings-update'),
    path('', views.home, name='home'),
    path('index.html', views.home, name='home-html'),
    path('about/', views.about, name='about'),
    path('about.html', views.about, name='about-html'),
    path('team/', views.team, name='team'),
    path('team.html', views.team, name='team-html'),
    path('contact/', views.contact, name='contact'),
    path('contact.html', views.contact, name='contact-html'),
    path('contact/send/', views.send_contact, name='send-contact'),
    path('newsletter/subscribe/', views.subscribe, name='subscribe'),
]

if settings.DEBUG:
    urlpatterns += staticfiles_urlpatterns() + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
