An online landscape, built as a tool to explore the many aspects of the human voice. https://voicegardens.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
655 B

"""Flask server for the vocoder back-end."""
from flask import Flask, render_template, request
app = Flask(__name__)
@app.route("/")
def root():
"""Serve the main homepage."""
return render_template("index.html")
@app.route("/add-to-archive/", methods=["POST"])
def add_to_archive():
"""Accept audio recordings for archiving."""
# TODO: implement the saving of the files currently,
# I can't seem to get the file to send but the basic
# plumbing is in place
return ("faking it till we make it", 201)
@app.route("/archive/")
def archive():
"""Serve the archive listing."""
return render_template("archive.html")