moving API route to separate file

This commit is contained in:
2026-01-11 18:29:00 -07:00
parent 7b5a49979e
commit 93e6485ddf
3 changed files with 26 additions and 13 deletions

View File

@@ -25,6 +25,9 @@ def create_app(test_config=None):
from . import weather
app.register_blueprint(weather.bp)
app.add_url_rule('/', endpoint='index')
from . import api
app.register_blueprint(api.bp)
app.add_url_rule('/api', endpoint='api')
return app