from flask import Flask, Response
from flask.ext.restful import Api, Resource
from flask_cors import CORS
from course import CreateCourse, TeacherCourseList, StudentCourseList
from login import Login
from dbop import Mysql

application = app = Flask(__name__)
# app.response_class = MyResponse
api = Api(app)
CORS(app, origins='*', allow_headers='*')

# Database Connector Pool Initialize
db = Mysql()

api.add_resource(CreateCourse, '/createCourse', endpoint="createCourse")
api.add_resource(TeacherCourseList, '/teacherCourseList')
api.add_resource(StudentCourseList, '/studentCourseList')
api.add_resource(Login, '/login')

if __name__ == '__main__':
    app.run(debug=True)

dc06be5d14b93f4b27093ef04576b8898d4e42e3
<mask token>

<mask token>
CORS(app, origins='*', allow_headers='*')
<mask token>
api.add_resource(CreateCourse, '/createCourse', endpoint='createCourse')
api.add_resource(TeacherCourseList, '/teacherCourseList')
api.add_resource(StudentCourseList, '/studentCourseList')
api.add_resource(Login, '/login')
if __name__ == '__main__':
    app.run(debug=True)

<mask token>
application = app = Flask(__name__)
api = Api(app)
CORS(app, origins='*', allow_headers='*')
db = Mysql()
api.add_resource(CreateCourse, '/createCourse', endpoint='createCourse')
api.add_resource(TeacherCourseList, '/teacherCourseList')
api.add_resource(StudentCourseList, '/studentCourseList')
api.add_resource(Login, '/login')
if __name__ == '__main__':
    app.run(debug=True)

from flask import Flask, Response
from flask.ext.restful import Api, Resource
from flask_cors import CORS
from course import CreateCourse, TeacherCourseList, StudentCourseList
from login import Login
from dbop import Mysql
application = app = Flask(__name__)
api = Api(app)
CORS(app, origins='*', allow_headers='*')
db = Mysql()
api.add_resource(CreateCourse, '/createCourse', endpoint='createCourse')
api.add_resource(TeacherCourseList, '/teacherCourseList')
api.add_resource(StudentCourseList, '/studentCourseList')
api.add_resource(Login, '/login')
if __name__ == '__main__':
    app.run(debug=True)

from flask import Flask, Response
from flask.ext.restful import Api, Resource
from flask_cors import CORS
from course import CreateCourse, TeacherCourseList, StudentCourseList
from login import Login
from dbop import Mysql

application = app = Flask(__name__)
# app.response_class = MyResponse
api = Api(app)
CORS(app, origins='*', allow_headers='*')

# Database Connector Pool Initialize
db = Mysql()

api.add_resource(CreateCourse, '/createCourse', endpoint="createCourse")
api.add_resource(TeacherCourseList, '/teacherCourseList')
api.add_resource(StudentCourseList, '/studentCourseList')
api.add_resource(Login, '/login')

if __name__ == '__main__':
    app.run(debug=True)
