Skip to content
  • This project
    • Loading...
  • Sign in

胡边 / WebService-python-framework

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • WebService-python-framework
  • server
  • app.py
  • 胡边's avatar
    first time enhancement for the code structure · 0c035fbd
    胡边 committed 2017-10-18 11:16:19 +0800
    0c035fbd Browse Directory
app.py 297 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# -*- coding: utf-8 -*-


from flask import Flask
from flask_restful import Api


# initialize flask and flask restful
web_app = Flask(__name__)
web_app.config['SECRET_KEY'] = "myNameIsHuBian"
web_app.debug = True


web_api = Api(web_app)


from server.api.routes import init_routes
init_routes()