Commit f2abba3d authored by Andre Julius's avatar Andre Julius 👀
Browse files

Add route for gui. Add gui template.

parent 7001182b
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>potify gui</title>
</head>
<body>
<header>
<h1>potify</h1>
</header>
<ul id="songlist" class="">
</ul>
</body>
</html>
\ No newline at end of file
from flask import redirect, abort, jsonify
from flask import render_template, redirect, abort, jsonify
from web import web
import api.index
import api.player
......@@ -27,6 +27,11 @@ def index():
return jsonify(api.index.index)
@web.route("/gui/")
def gui():
return render_template("gui.html")
@web.route("/play/<file>")
def play(file):
""" Try enqueing a song. If given file name can not be found in the index,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment