Function create_notification

Source
pub async fn create_notification<J, RR, TR, NR, NFR, SR, TCR, PR>(
    request: NotificationCreateRequest,
    state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR>,
) -> Result<HttpResponse, ApiError>
Expand description

Creates a new notification.

§Arguments

  • request - The notification creation request.
  • state - The application state containing the notification repository.

§Returns

The created notification or an error if creation fails.