mirror of
https://github.com/kennethreitz-archive/flask-rest.git
synced 2026-06-05 15:30:18 +00:00
17 lines
246 B
Python
17 lines
246 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from flask import Flask
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route('/')
|
|
def hello_world():
|
|
return 'Hello World!'
|
|
|
|
from .api import api
|
|
|
|
app.register_blueprint(api, url_prefix='/api')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run() |