diff --git a/onomastics/geogen/server.py b/onomastics/geogen/server.py index 5750ec7..49d0f0c 100644 --- a/onomastics/geogen/server.py +++ b/onomastics/geogen/server.py @@ -4,6 +4,18 @@ import geogen.client app = Flask(__name__) +@app.route("/") +def help(): + return """Welcome to KierĂ¡n's surname cartographer! + +The following routes are available to you: + +- /NAME/absolute.svg displays a map of the absolute distribution of a surname +- /NAME/relative.svg displays a map of the relative distribution of a surname (divided by population of a landkreis) +- /NAME/data.csv returns the raw data, grouped by Landkreis + """ + + @app.route("//relative.svg") def relative(name): color = request.args.get("color") or "navy"