TG-63 supression template pdf

This commit is contained in:
Quentin Rouland 2017-03-28 10:11:56 +02:00
parent 5b429dd78c
commit f4d9ebaca0
1 changed files with 3 additions and 4 deletions

View File

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