Merge pull request #1613 from expsa/dev_odex25_mobile

Dev odex25 mobile
This commit is contained in:
SamirLADOUI-sa 2024-10-24 10:07:40 +01:00 committed by GitHub
commit 46b0fba02c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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()