Flask-fs didn't help with the send_file/context issue

This commit is contained in:
Alex Wright 2018-11-05 20:32:38 +01:00
parent 677076e020
commit 14657f85a5
1 changed files with 1 additions and 2 deletions

View File

@ -2,18 +2,17 @@ import logging
import uuid
import tempfile
import os
import flask_fs as fs
from flask import Flask, abort, request, Response, send_file
import pypandoc
app = Flask(__name__)
fs.init_app(app)
app.logger.setLevel(logging.INFO)
@app.route('/')
def index():
return 'Hello'
@app.route('/convert', methods=['POST'])
def convert():
if 'input' not in request.files: