forked from Iroom-gbs/GBSWiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.py
70 lines (55 loc) · 2.39 KB
/
custom.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from route.tool.func import *
from custom_route.tools import *
from custom_route.generate_student import *
from route.oauth2 import *
from route.ex_user_info import *
from route.student_id_card import *
from route.auth_google_oauth import *
from route.login_google_oauth import *
def custom_run(conn, app):
#학생 문서 생성
@app.route('/generate_student', methods=['POST', 'GET'])
def generate_student():
return generate_student_2(conn)
@app.route('/generate_student/request', methods=['POST', 'GET'])
def request_generate_student():
return request_generate_student_2(conn)
@app.route('/generate_student/list', methods=['POST', 'GET'])
def list_student_request():
return list_student_request_2(conn)
@app.route('/generate_student/accept/<everything:request_id>', methods=['POST','GET'])
def accept_student_request(request_id):
return accept_student_request_2(conn, request_id=request_id)
@app.route('/generate_student/delete/<everything:request_id>', methods=['POST','GET'])
def delete_student_request(request_id):
return delete_student_request_2(conn, request_id=request_id)
@app.route('/generate_student/history', methods=['GET'])
def generate_student_history():
return show_student_request_history_2(conn)
@app.route('/oauth2/login', methods=['POST','GET'])
def oauth2_login():
return oauth2_login_2(conn)
@app.route('/oauth2/auth', methods=['POST'])
def oauth2_auth():
return oauth2_auth_2(conn)
@app.route('/oauth2/refresh', methods=['POST'])
def oauth2_refresh():
return oauth2_refresh_2(conn)
@app.route('/ex/user/info', methods=['POST'])
def ex_user_info():
return ex_user_info_2(conn)
@app.route('/student_id_card', methods=['GET','POST'])
def student_id_card():
return student_id_card_2(conn)
@app.route('/auth/google', methods=['POST','GET'])
def login_register_google():
return auth_google_oauth_2(conn)
@app.route('/auth/google/callback', methods=['POST','GET'])
def login_register_google_callback():
return auth_google_oauth_callback_2(conn)
@app.route('/login/google', methods=['GET'])
def login_google():
return login_google_oauth_2(conn)
@app.route('/login/google/callback', methods=['POST', 'GET'])
def login_google_callback():
return login_google_oauth_callback_2(conn)