Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lambda/src/routes/auth/account_attached_clients.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""AccountAttachedClients route — GET /v1/account/attached_clients"""

import json
from typing import Sequence

from aws_lambda_powertools.event_handler import APIGatewayRestResolver, Response
from aws_lambda_powertools.event_handler.middlewares import BaseMiddlewareHandler

from src.services.device_manager import DeviceManager
from src.shared.base_route import BaseRoute
from src.shared.utils import json_dumps


class AccountAttachedClientsRoute(BaseRoute):
Expand Down Expand Up @@ -54,5 +54,5 @@ def handle(self, event) -> Response:
return Response(
status_code=200,
content_type="application/json",
body=json.dumps(clients),
body=json_dumps(clients),
)
3 changes: 2 additions & 1 deletion lambda/src/routes/auth/account_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from src.services.device_manager import DeviceManager
from src.shared.base_route import BaseRoute
from src.shared.utils import json_dumps


class AccountDeviceRoute(BaseRoute):
Expand Down Expand Up @@ -35,5 +36,5 @@ def handle(self, event) -> Response:
return Response(
status_code=200,
content_type="application/json",
body=json.dumps(device),
body=json_dumps(device),
)
4 changes: 2 additions & 2 deletions lambda/src/routes/auth/account_devices.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""AccountDevices route — GET /v1/account/devices"""

import json
from typing import Sequence

from aws_lambda_powertools.event_handler import APIGatewayRestResolver, Response
from aws_lambda_powertools.event_handler.middlewares import BaseMiddlewareHandler

from src.services.device_manager import DeviceManager
from src.shared.base_route import BaseRoute
from src.shared.utils import json_dumps


class AccountDevicesRoute(BaseRoute):
Expand Down Expand Up @@ -41,5 +41,5 @@ def handle(self, event) -> Response:
return Response(
status_code=200,
content_type="application/json",
body=json.dumps(devices),
body=json_dumps(devices),
)
Loading