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__) app = Flask(__name__)
# define http route # define http route
@app.route("/") @app.route("/split-pdf")
def index(): def index():
pdf = PDF('/home/andreas/split_pdf/') pdf = PDF('/tmp/split_pdf/')
try: try:
pdf.split() pdf.split()
return 200 return 200