"""web_site URL Configuration

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

urlpatterns = [
    # url for django admin pages
    path('admin/', admin.site.urls),

    # url for index page
    path('', v.link_index),
    path('index/', v.link_index),
    path('index.html', v.link_index),

    # url for home page
    path('home.html', v.link_home),

    # url for origin data show
    path('sd_index.html', v.link_sd_index),
    path('sd_dynasty.html', v.link_sd_dynasty),
    path('sd_poet.html', v.link_sd_poet),

    # url for space-route visual
    path('route_map.html', v.link_space_route_visual),

    # url for data-analysis
    path('network.html', v.link_network),

    # url for one-more-thing
    path('onemorething.html', v.link_onemorething),
    path('one_poem_index.html', v.link_one_poem_index),
    path('one_poem_inside.html', v.link_one_poem_inside),

    # url for ajax request
    path('getPoets', v.request_get_poets),
    path('getPoetIntro', v.request_get_poet_intro),
    path('getPoetry', v.request_get_poetry),
    path('getXuAll', v.request_get_xu_all),
    path('getXuInside', v.request_get_xu_inside)
]
