hs-css/test/static.py

14 lines
317 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 urllib.urlopen("http://at.hackerspace.pl/api").read()
app.run()