diff --git a/voter/api/api.py b/voter/api/api.py index c4b53cd..7dbae81 100644 --- a/voter/api/api.py +++ b/voter/api/api.py @@ -16,6 +16,13 @@ def list_channels(): @api_channels.route("/channels/") def get_channel(channel): + """ + If no query specified, prints the name of the + YouTube channel typed. When a query with the + name "vote" is given, adds or substracts 1 + from the specified YouTube score. + """ + if "vote" in request.args: vote = str(request.args["vote"]) @@ -42,6 +49,7 @@ def get_channel(channel): @api_channels.route("/channels//image.svg") def img_channel(channel): + """ Returns the YouTube score in a svg image. """ if channel in channels: return f"""