"""Equity page URL configuration."""

from django.urls import path
from django.views.generic import RedirectView

from .views import (
    detail_page,
    pool_page,
    screen_page,
    valuation_repair_config_page,
    valuation_repair_page,
)

app_name = 'equity'

urlpatterns = [
    path("", RedirectView.as_view(url="/equity/screen/", permanent=False), name="home"),
    # Page routes
    path('screen/', screen_page, name='screen'),
    path('detail/<str:stock_code>/', detail_page, name='detail'),
    path('pool/', pool_page, name='pool'),
    path('valuation-repair/', valuation_repair_page, name='valuation_repair'),
    path('valuation-repair/config/', valuation_repair_config_page, name='valuation_repair_config'),
]
