Commit 562f1d0f authored by Sli's avatar Sli

Fix bug dl app

parent 1173dad3
......@@ -12,10 +12,16 @@ app = Bottle()
plugin = sqlite.Plugin(dbfile='../data/sqliteDB.db')
app.install(plugin)
@app.route('/')
@app.route('/app.apk')
def GetApp():
return static_file("app.apk", root="../data/")
@app.route('/')
def HomePage():
text = ''.join(("<h1>Serveur de validation de ebillets du gala</h1><p>Cliquez <a href=",
"/app.apk",">ici</a> pour télécarger l'application</p>"))
return text
@app.route('/keys')
def GetKeys():
return static_file("keys.json", root="../data/")
......
Markdown is supported
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