"""
URL configuration for FIXCARS project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.1/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.contrib import admin
from django.urls import include, path
from django.conf.urls.static import static

from accounts import contractor as Accounts
from banners import contractor as Banners
from pages import contractor as Pages
from categories import contractor as Categories
from chats import contractor as Chat
from works import contractor as Work
from sub_categories import contractor as SubCategories
from dashboard import apis as Dashborad

urlpatterns = [

    path('auth/send-otp', Accounts.SendOtp.as_view(), name="sendOtp"),
    path('auth/verify-otp', Accounts.VerifyOtp.as_view(), name="verifyOtp"),
    path('auth/verify-user', Accounts.verifyUser, name="verifyUser"),
    path('auth/profile', Accounts.ContractorProfileView.as_view(), name="contractorProfile"),
    path('auth/signup', Accounts.ContractorSignupView.as_view(), name="contractorSignup"),
   
    path('banners', Banners.BannersView.as_view(), name="banners"),
    path('sub-categories', SubCategories.SubCategoriesView.as_view(), name="subCategories"),

    path('pages', Pages.PagesView.as_view(), name="pagesView"),
    path('page', Pages.PageView.as_view(), name="pageView"),


    path('chats', Chat.ChatsView.as_view(), name="chats"),
    path('chat', Chat.ChatView.as_view(), name="chat"),

    path('work', Work.WorkView.as_view(), name="work"),
    path('works', Work.WorksView.as_view(), name="works"),
    path('new-works', Work.UnassignedWorksForContractorView.as_view(), name="newWorks"),
    path('work/update-status', Work.UpdateWorkStatusView.as_view(), name="updateWorkStatusView"),
    path('work/progress', Work.ContractorWorkProgressView.as_view(), name="contractorWorkProgressView"),
    
    path('dashboard', Dashborad.DashboardView.as_view(), name="contractorDashboard")
]

