def routes()

in src/lambdas/modular_api_handler/processors/customer_processor.py [0:0]


    def routes(cls) -> tuple[Route, ...]:
        return (
            cls.route(
                Endpoint.CUSTOMERS,
                HTTPMethod.GET,
                'query',
                response=(HTTPStatus.OK, CustomersResponse, None),
                description='Currently each user can have only one customer. '
                            'So, generally this endpoint will return a list '
                            'with only one customer (unless you are a system '
                            'user)',
                permission=Permission.CUSTOMER_DESCRIBE
            ),
            cls.route(
                Endpoint.CUSTOMERS_NAME,
                HTTPMethod.GET,
                'get',
                response=(HTTPStatus.OK, CustomerResponse, None),
                permission=Permission.CUSTOMER_DESCRIBE
            ),
            cls.route(
                Endpoint.CUSTOMERS,
                HTTPMethod.POST,
                'post',
                response=(HTTPStatus.OK, CustomerResponse, None),
                permission=Permission.CUSTOMER_CREATE
            ),
            cls.route(
                Endpoint.CUSTOMERS_NAME,
                HTTPMethod.PATCH,
                'patch',
                response=(HTTPStatus.OK, CustomerResponse, None),
                permission=Permission.CUSTOMER_UPDATE
            ),
            cls.route(
                Endpoint.CUSTOMERS_NAME_ACTIVATE,
                HTTPMethod.POST,
                'activate',
                summary='Activates the customer',
                response=(HTTPStatus.OK, CustomerResponse, None),
                permission=Permission.CUSTOMER_ACTIVATE
            ),
            cls.route(
                Endpoint.CUSTOMERS_NAME_DEACTIVATE,
                HTTPMethod.POST,
                'deactivate',
                summary='Deactivates the customer',
                response=(HTTPStatus.OK, CustomerResponse, None),
                permission=Permission.CUSTOMER_DEACTIVATE
            )
        )