From f4d9ebaca0b1bdae0d2cbffe81a088088aafcabb Mon Sep 17 00:00:00 2001 From: Quentin Rouland Date: Tue, 28 Mar 2017 10:11:56 +0200 Subject: [PATCH] TG-63 supression template pdf --- backend/app/api/PdfAPI.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/app/api/PdfAPI.py b/backend/app/api/PdfAPI.py index e46d8df..1171c7f 100644 --- a/backend/app/api/PdfAPI.py +++ b/backend/app/api/PdfAPI.py @@ -5,9 +5,9 @@ from model import getParam import os -class LoginAPI(Resource): +class PdfAPI(Resource): """ - Login Api Resource + Pdf Api Resource """ def delete(self): @@ -18,5 +18,4 @@ class LoginAPI(Resource): if ".." in args: return { "msg" : ".. not allowed in path"}, 400 - delete_file(os.path.join(getParam('TEMPLATES_DIRECTORY'), args['file'])) - + delete_file(os.path.join(getParam('TEMPLATES_DIRECTORY'), args['templateName']))