Flask-fs didn't help with the send_file/context issue
This commit is contained in:
parent
677076e020
commit
14657f85a5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue