[FIX] odex_mobile: use token instead of auth user

This commit is contained in:
Samir Ladoui 2024-10-24 09:50:30 +01:00
parent 8fb70fbaca
commit ca1971246c
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ class AttendanceController(http.Controller):
message = validator.get_server_error(e, user)
return http_helper.errcode(code=403, message=message)
@http.route('/rest_api/v2/data-sync', type='http', auth='user', methods=['GET'], csrf=False)
@http.route('/rest_api/v2/data-sync', type='http', auth='none', methods=['GET'], csrf=False)
def data_sync(self, **kwargs):
# Assuming that http_method, body, headers, and token are obtained via helper methods
http_method, body, headers, token = http_helper.parse_request()