nyxsite/site/app.py

20 lines
424 B
Python
Raw Normal View History

2025-02-23 22:42:00 -06:00
#!/usr/bin/env python
2025-02-23 22:55:49 -06:00
from flask import Flask, render_template, make_response
2025-02-23 22:42:00 -06:00
app = Flask(__name__)
@app.route('/')
2025-02-23 22:55:49 -06:00
def index():
return render_template('index.j2')
@app.route('/assets/index.css')
def indexStyle():
css = render_template('assets/index.css')
response = make_response(css)
response.mimetype = "text/css"
return response
2025-02-23 22:42:00 -06:00
if __name__ == '__main__':
app.run(host="0.0.0.0", port=8080)