Spaces:
Sleeping
Sleeping
| from flask import Flask,redirect, abort | |
| app = Flask(__name__) | |
| def start(): | |
| return "start" | |
| def config(): | |
| return {} | |
| def hello_world(): | |
| return "<p>Hello, World!</p>" | |
| def redir(): | |
| return redirect("/200") | |
| def error_401(): | |
| return abort(401, "Error 401") | |
| app.run(port=7860) |