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']))