Files
ALPHA-TRAIN2/services/rusgram/static/static.py
T
bobiqq c231be0094
build-and-push / detect (push) Successful in 7s
build-and-push / build (${{ fromJSON(needs.detect.outputs.services) }}) (push) Failing after 3m33s
services
2026-08-26 11:04:23 +03:00

29 lines
551 B
Python
Executable File

#!/usr/bin/python3
from flask import Flask, send_file
app = Flask(__name__)
static_node_port = 5001
@app.route('/img/<name>')
def img(name):
return send_file(f'files/static/img/{name}')
@app.route('/css/<name>')
def css(name):
return send_file(f'files/static/css/{name}')
@app.route('/fonts/<name>')
def fonts(name):
return send_file(f'files/static/fonts/{name}')
@app.route('/js/<name>')
def js(name):
return send_file(f'files/static/js/{name}')
if __name__ == '__main__':
app.run(host="0.0.0.0", port=static_node_port)