change the route name
This commit is contained in:
parent
94ede00fc7
commit
212c773ea8
4
api.py
4
api.py
|
@ -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
|
||||||
|
|
Reference in New Issue