PyMISP/examples/feed-generator-from-redis/server.py

13 lines
279 B
Python
Raw Normal View History

2018-03-08 17:33:39 +01:00
#!/usr/bin/env python3
import os.path
from flask import Flask
from flask_autoindex import AutoIndex
2018-03-08 17:33:39 +01:00
from settings import outputdir
app = Flask(__name__)
AutoIndex(app, browse_root=os.path.join(os.path.curdir, outputdir))
if __name__ == '__main__':
app.run(host='0.0.0.0')