change the route name

This commit is contained in:
Andreas Zweili 2021-05-16 17:41:36 +02:00
parent 94ede00fc7
commit 212c773ea8
1 changed files with 2 additions and 2 deletions

4
api.py
View File

@ -8,9 +8,9 @@ from .pdf import PDF
app = Flask(__name__)
# define http route
@app.route("/")
@app.route("/split-pdf")
def index():
pdf = PDF('/home/andreas/split_pdf/')
pdf = PDF('/tmp/split_pdf/')
try:
pdf.split()
return 200