예제 #1
0
파일: index.py 프로젝트: Dannm/wechat-movie
def main():
    settings = {
    "host": config.server_host,
    "port": config.server_port,
    "debug": True,
    }
    app.run(**settings)
예제 #2
0
def main():
    settings = {
        "host": config.server_host,
        "port": config.server_port,
        "debug": True,
    }
    app.run(**settings)
예제 #3
0
from movie import app

if __name__ == '__main__':
    app.run(debug=True)
예제 #4
0
from movie import app
from flask_restful import Api
from movie.rest_api.movie_resource import *
from movie.repository.movie_repository import Movies

api = Api(app)
service_namespace = "/movies"

api.add_resource(MovieListResource, "/movies")
api.add_resource(MovieResource, "/movies/<movie_id>")
api.add_resource(MovieCreateResource, "/movies/create")

if __name__ == '__main__':
    app.run(port=5001, debug=True)
예제 #5
0
파일: run.py 프로젝트: vivamilk/Movie_sale
from movie import app

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