18 lines
442 B
Python
18 lines
442 B
Python
from flask import Flask, render_template
|
|
import urllib
|
|
|
|
app = Flask(__name__, static_folder='../', static_url_path='', template_folder='../')
|
|
@app.route('/')
|
|
def index():
|
|
return render_template('index.html')
|
|
|
|
@app.route('/at')
|
|
def at():
|
|
# return '{"users": []}'
|
|
# return '{"users": [[],[],[]]}'
|
|
return urllib.urlopen("http://at.hackerspace.pl/api").read()
|
|
|
|
if __name__ == '__main__':
|
|
app.debug = True
|
|
app.run(host='::')
|