mirror of
https://github.com/alvierahman90/uploadr.git
synced 2025-01-12 10:14:21 +00:00
Merge branch 'Euab-master'
This commit is contained in:
commit
aed5f9390d
@ -1,12 +1,14 @@
|
||||
import time
|
||||
import flask
|
||||
import config
|
||||
import os
|
||||
from flask import Flask
|
||||
from flask import render_template
|
||||
from flask import request
|
||||
from flask import send_from_directory
|
||||
from werkzeug.utils import secure_filename
|
||||
app = Flask(__name__)
|
||||
app.config['SECRET_KEY'] = os.urandom(24)
|
||||
|
||||
@app.route("/")
|
||||
@app.route("/hello/<name>")
|
||||
@ -44,3 +46,7 @@ def css(filename=None):
|
||||
@app.route('/fonts/<filename>')
|
||||
def fonts(filename=None):
|
||||
return flask.send_from_directory('fonts', filename)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.debug = True
|
||||
app.run()
|
||||
|
Loading…
Reference in New Issue
Block a user