forked from brmlab/brmbar-github
28 lines
504 B
Python
Executable file
28 lines
504 B
Python
Executable file
#!/usr/bin/python
|
|
|
|
from flask import Flask, render_template
|
|
|
|
app = Flask('BrmBar')
|
|
|
|
@app.route('/')
|
|
def index():
|
|
return render_template('index.html')
|
|
|
|
@app.route('/code/<code>')
|
|
def code(code):
|
|
return 'CODE "%s" received' % code
|
|
|
|
@app.route('/admin/')
|
|
def admin():
|
|
return render_template('admin.html')
|
|
|
|
@app.route('/log/')
|
|
def log():
|
|
return render_template('log.html')
|
|
|
|
@app.route('/stats/')
|
|
def stats():
|
|
return render_template('stats.html')
|
|
|
|
if __name__ == '__main__':
|
|
app.run()
|