MrDoc/app_api/urls.py
2021-03-31 14:43:30 +08:00

22 lines
1.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding:utf-8
# @文件: urls.py
# @创建者:州的先生
# #日期2020/3/22
# 博客地址zmister.com
from django.urls import path,re_path
from app_api import views
urlpatterns = [
path('manage_token/',views.manage_token,name='manage_token'),# 用户Token管理
path('get_projects/',views.get_projects,name="api_get_projects"), # 获取文集列表
path('get_docs/',views.get_docs,name="api_get_docs"), # 获取文集的文档列表
path('get_doc/',views.get_doc,name="api_get_doc"), # 获取单篇文档
path('create_project/',views.create_project,name="api_create_project"), # 新建文集
path('create_doc/',views.create_doc,name="api_create_doc"), # 新建文档
path('modify_doc/', views.modify_doc, name="api_modify_doc"), # 修改文档
path('upload_img/',views.upload_img,name="api_upload_img"), # 粘贴上传文件
# 跳转登录使用
path('get_timestamp/',views.get_timestamp,name="get_timestamp"), # 获取服务器时间
path('oauth0/',views.oauth0,name="oauth0"), # Token验证登录非完整oauth
]