Function backend::routes::content::get_total_post_count [−][src]
pub async fn get_total_post_count(
_auth: Auth,
db: Connection<PgDb>
) -> (Status, Result<Json<PostTotalCount>, Json<ErrorResponse>>)Expand description
Get total post count
Parameters
Auth: Authenticated UserConnection<PgDb>: Postgres connection
Returns
Status: HTTP statusJson<PostTotalCount>: Number of total post
Errors
ErrorResponse: Error messageErrorCode::DatabaseErr