-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (19 loc) · 787 Bytes
/
main.py
File metadata and controls
25 lines (19 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import random
import auth.auth as auth
from flask import Flask, Response, redirect, request, url_for
import json
from swagger.render import render_swagger_ui
from datastore.datastore import initClient, datastore
import datetime
import uuid
from utils import response
client = initClient()
# load functions
from functions.profile import whoami, login, addChildren, updateChild, deleteChild, getChildById
from functions.admin import insertLesson, insertLessons
from functions.lesson import getLessonSByType, personalLesson, question, lesson
from functions.userlearning import updateUserLearning, userlearning, userReport
def docs(request):
return Response(status=200,
mimetype='text/html',
response=render_swagger_ui('calisgateway.yaml'))