build0006

This commit is contained in:
Hell13Cat
2021-12-29 00:31:58 +03:00
parent 58cbbd4884
commit ad3db6afcf
2 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -9,6 +9,8 @@ app = Flask(__name__)
def hello():
return render_template('index.html')
@app.route('/static/<str:file_name>')
def static(file_name):
return send_from_directory(os.getcwd()+"/static/"+file_name, file_name)
@app.route('/statics/<string:file_name>')
def statics(file_name):
return send_from_directory(os.getcwd()+"/static", file_name)
app.run(host="localhost", port=9283)