Debian Codegraph @

test/testflask.py

raw symbols SCIP
1 from flask import Flask
2
3 app = Flask(__name__)
4
5 cache = {}
6
7
8 @app.route("/<page>")
9 def index(page):
10 if page not in cache:
11 cache[page] = f"<h1>Welcome to {page}</h1>"
12 return cache[page]
13
14
15 if __name__ == "__main__":
16 app.run()