mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* add config file * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add isort * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
12 lines
281 B
Python
12 lines
281 B
Python
from flask import Flask
|
|
from freedom import app as freedom
|
|
from toga_flask import TogaApp
|
|
|
|
app = Flask(__name__, static_folder="../static")
|
|
|
|
app.add_url_rule("/", view_func=TogaApp.as_view("foo", app_module=freedom))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(port=8081, debug=True)
|