from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from django.urls import include, path
from rest_framework import routers


router = routers.DefaultRouter()

urlpatterns = [
    path('admin_tools/', include('admin_tools.urls')),
    path('admin/', admin.site.urls),
    path('api/v1/', include([
        path('experience/', include('portfolio.app.experience.urls')),
        path('education/', include('portfolio.app.education.urls')),
        path('skills/', include('portfolio.app.skills.urls')),
        path('projects/', include('portfolio.app.projects.urls')),
        path('courses/', include('portfolio.app.courses.urls')),
        path('schools/', include('portfolio.app.schools.urls')),
        path('companies/', include('portfolio.app.companies.urls')),
        path('profile/', include('portfolio.app.profile.urls')),
        path('comments/', include('portfolio.app.comments.urls')),
        path('resume/', include('portfolio.app.resume.urls')),
    ])),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)


admin.site.site_header = settings.SITE_HEADER
admin.site.site_title = settings.SITE_TITLE
admin.site.index_title = settings.INDEX_TITLE
