mirror of
https://github.com/mariadb-corporation/dev-example-todo.git
synced 2026-01-11 10:03:10 +00:00
12 lines
202 B
Python
12 lines
202 B
Python
import flask
|
|
from tasks import tasks
|
|
|
|
app = flask.Flask(__name__)
|
|
app.config["DEBUG"] = True
|
|
app.register_blueprint(tasks)
|
|
|
|
@app.route("/api/version")
|
|
def version():
|
|
return "1.0"
|
|
|
|
app.run(port=8080) |