pub async fn post_error(
pool: Data<PgPool>,
user: Option<AuthUser>,
payload: Json<NewErrorReport>,
) -> ControllerResult<HttpResponse>Expand description
POST /api/v0/errors - Reports an error occurrence.
Accessible to both authenticated and anonymous users. If the user is logged in, their id is stored with the error occurrence.