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 uuid
|
||||||
import tempfile
|
import tempfile
|
||||||
import os
|
import os
|
||||||
import flask_fs as fs
|
|
||||||
from flask import Flask, abort, request, Response, send_file
|
from flask import Flask, abort, request, Response, send_file
|
||||||
import pypandoc
|
import pypandoc
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
fs.init_app(app)
|
|
||||||
app.logger.setLevel(logging.INFO)
|
app.logger.setLevel(logging.INFO)
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
return 'Hello'
|
return 'Hello'
|
||||||
|
|
||||||
|
|
||||||
@app.route('/convert', methods=['POST'])
|
@app.route('/convert', methods=['POST'])
|
||||||
def convert():
|
def convert():
|
||||||
if 'input' not in request.files:
|
if 'input' not in request.files:
|
||||||
|
|
Loading…
Reference in New Issue