Update: Route admin/delete/user
This commit is contained in:
parent
b42aa64c57
commit
a9324fb35a
2 changed files with 9 additions and 9 deletions
|
|
@ -12,7 +12,6 @@ def send_error(status_code, message, token=None):
|
|||
status=status_code,
|
||||
mimetype='application/json'
|
||||
)
|
||||
res.headers['Access-Control-Allow-Origin'] = app.config.get('ALLOW_ORIGIN')
|
||||
if token is not None:
|
||||
res.set_cookie('SESSIONID', token)
|
||||
return res
|
||||
|
|
@ -29,7 +28,6 @@ def send_message(message, data, token=None, token_delete=False):
|
|||
status=200,
|
||||
mimetype='application/json'
|
||||
)
|
||||
res.headers['Access-Control-Allow-Origin'] = app.config.get('ALLOW_ORIGIN')
|
||||
if token is not None:
|
||||
res.set_cookie('SESSIONID', token)
|
||||
if token_delete:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue