a terrible but somewhat functional state
This commit is contained in:
@@ -19,15 +19,12 @@ def create_app(test_config=None):
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
@app.route('/hello')
|
||||
def hello():
|
||||
return "'Ello, Wurld!"
|
||||
|
||||
from . import db
|
||||
db.init_app(app)
|
||||
|
||||
from . import weather
|
||||
app.register_blueprint(weather.bp)
|
||||
app.add_url_rule('/', endpoint='index')
|
||||
app.add_url_rule('/api', endpoint='api')
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user