Refactor blog module and remove blog-related functionality
- Removed blog router and associated API endpoints. - Deleted blog persistence functions and related query parameters. - Removed blog schemas and models from the codebase. - Introduced common crate for shared types, including DateTimeWithTimeZoneWrapper. - Added Thought and Follow models with corresponding migrations. - Updated dependencies in Cargo.toml files to reflect changes. - Adjusted tests to remove references to the blog module.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
use utoipa::OpenApi;
|
||||
|
||||
use models::params::blog::CreateBlogParams;
|
||||
use models::schemas::blog::{BlogListSchema, BlogSchema};
|
||||
|
||||
use api::models::{ApiErrorResponse, ParamsErrorResponse};
|
||||
use api::routers::blog::*;
|
||||
|
||||
#[derive(OpenApi)]
|
||||
#[openapi(
|
||||
paths(blogs_get, blogs_post),
|
||||
components(schemas(
|
||||
CreateBlogParams,
|
||||
BlogListSchema,
|
||||
BlogSchema,
|
||||
ApiErrorResponse,
|
||||
ParamsErrorResponse,
|
||||
))
|
||||
)]
|
||||
pub(super) struct BlogApi;
|
@@ -3,7 +3,6 @@ use utoipa::OpenApi;
|
||||
use utoipa_scalar::{Scalar, Servable as ScalarServable};
|
||||
use utoipa_swagger_ui::SwaggerUi;
|
||||
|
||||
mod blog;
|
||||
mod root;
|
||||
mod user;
|
||||
|
||||
@@ -12,13 +11,10 @@ mod user;
|
||||
nest(
|
||||
(path = "/", api = root::RootApi),
|
||||
(path = "/users", api = user::UserApi),
|
||||
(path = "/blogs", api = blog::BlogApi),
|
||||
),
|
||||
tags(
|
||||
(name = "root", description = "Root API"),
|
||||
(name = "user", description = "User API"),
|
||||
(name = "blog", description = "Blog API"),
|
||||
|
||||
)
|
||||
)]
|
||||
struct _ApiDoc;
|
||||
|
Reference in New Issue
Block a user