from django.conf.urls import url, include
from app import views

urlpatterns = [
    # Matches any html file - to be used for gentella
    # Avoid using your .html in your resources.
    # Or create a separate django app.
    url(r'^.*\.html', views.gentella_html, name='gentella'),

    # The home page
    url(r'^$', views.index, name='index'),
    # login
    url(r'app/index/', views.go_index, name='go_index'),
    url(r'app/login/', views.do_login, name='do_login'),
    url(r'app/register/', views.register, name='register'),
    url(r'app/logout/', views.do_logout, name='do_logout'),
    url(r'app/', include('django.contrib.auth.urls')),
    url(r'app/show_group/', views.show_group, name='show_group'),
    url(r'api/get_group/', views.get_group),
    url(r'api/del_group/', views.del_group),
    url(r'app/show_stu/', views.show_stu, name='show_stu'),
    url(r'api/get_stu/', views.get_stu),
    url(r'api/add_stu/', views.add_stu),
    url(r'api/update_stu/', views.update_stu),
    url(r'api/del_stu/', views.del_stu),
    url(r'app/show_course/', views.show_course, name='show_course'),
    url(r'api/get_course/', views.get_course),
    url(r'api/add_course/', views.add_course),
    url(r'api/update_course/', views.update_course),
    url(r'api/del_course/', views.del_course),
    url(r'app/show_dep/', views.show_dep, name='show_dep'),
    url(r'api/get_dep/', views.get_dep),
    url(r'app/show_cs/', views.show_cs, name='show_cs'),
    url(r'api/get_cs/', views.get_cs),
    url(r'app/show_place/', views.show_place, name='show_place'),
    url(r'api/get_place/', views.get_place),
    url(r'api/add_place/', views.add_place),
    url(r'api/update_place/', views.update_place),
    url(r'api/del_place/', views.del_place),
    url(r'api/login/', views.api_login),
]
