remove subscription endpoint
This commit is contained in:
@@ -3,7 +3,6 @@ from typing import Annotated
|
||||
|
||||
from aws_lambda_powertools.event_handler.api_gateway import Router
|
||||
from aws_lambda_powertools.event_handler.exceptions import (
|
||||
NotFoundError,
|
||||
ServiceError,
|
||||
)
|
||||
from aws_lambda_powertools.event_handler.openapi.params import Body
|
||||
@@ -19,6 +18,7 @@ from layercake.extra_types import CpfStr, NameStr
|
||||
from api_gateway import JSONResponse
|
||||
from boto3clients import dynamodb_client
|
||||
from config import USER_TABLE
|
||||
from exceptions import CPFConflictError, UserNotFoundError
|
||||
|
||||
from .emails import router as emails
|
||||
from .orgs import router as orgs
|
||||
@@ -30,14 +30,6 @@ router = Router()
|
||||
dyn = DynamoDBPersistenceLayer(USER_TABLE, dynamodb_client)
|
||||
|
||||
|
||||
class UserNotFoundError(NotFoundError): ...
|
||||
|
||||
|
||||
class CPFConflictError(ServiceError):
|
||||
def __init__(self, msg: str | dict):
|
||||
super().__init__(HTTPStatus.CONFLICT, msg)
|
||||
|
||||
|
||||
class RateLimitExceededError(ServiceError):
|
||||
def __init__(self, msg: str | dict):
|
||||
super().__init__(HTTPStatus.TOO_MANY_REQUESTS, msg)
|
||||
|
||||
Reference in New Issue
Block a user