"""shield URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/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, include
from django.urls import re_path
from shieldServer import views, message, svm
from chainServer import clock
from chainServer import views as chain_views

urlpatterns = [
    path('admin/', admin.site.urls),
    path('index/', views.home),
    path('login/', views.login, name='login'),
    path('logout/', views.logout, name='logout'),
    path('addLending/', views.add_lending, name='addLending'),
    path('lendingResult/', views.lending_result, name='lendingResult'),
    path("mine/", clock.mine),
    path('receive/', chain_views.broadcastreceiver),
    path('repayment/', views.repayment, name='repayment'),
    path('repayment_repay/', views.repayment_repay, name='repayment_repay'),
    path('sendCode/', message.send_message, name='sendCode'),
    path('changePwd/', views.changePwd, name='changePwd'),
    path('query_svm/', svm.query_svm, name='query_svm'),
    path('get/', clock.get_blocks),
    path('user_management/', views.usermanage, name='usermanage'),
    path('delete_user/', views.deleteuser, name='deleteuser'),
    path('new_user/', views.new_user, name='newuser'),
    re_path(r'^index/(\w+).html$', views.others),
    path('alert/', views.alert_serach, name='alertsearch'),
    path('blacklist/', chain_views.blacklist_search, name='blacklistsearch'),
    path('alert_know/', views.alert_know, name='alertsearch'),
    path('accountinfo/', views.accountinfo, name="accountinfo"),
    path('lending_svm/', svm.lending_svm, name="lending_svm"),
    path('userManageEnter/', views.is_manager, name='is_manager'),
]
