Skip to content

Commit

Permalink
Remove: Rustcc
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviRain-Su committed May 27, 2024
1 parent 60b335e commit 8e17b3d
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 369 deletions.
1 change: 0 additions & 1 deletion src/routes/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
mod health_check;
pub mod rebase;
pub mod rustcc;

use axum::http::{request::Parts, StatusCode};
use axum::{
Expand Down
8 changes: 0 additions & 8 deletions src/routes/rustcc/mod.rs

This file was deleted.

61 changes: 0 additions & 61 deletions src/routes/rustcc/query_all.rs

This file was deleted.

45 changes: 0 additions & 45 deletions src/routes/rustcc/query_all_author.rs

This file was deleted.

35 changes: 0 additions & 35 deletions src/routes/rustcc/query_by_hash.rs

This file was deleted.

35 changes: 0 additions & 35 deletions src/routes/rustcc/query_by_id.rs

This file was deleted.

35 changes: 0 additions & 35 deletions src/routes/rustcc/query_by_tag.rs

This file was deleted.

65 changes: 0 additions & 65 deletions src/routes/rustcc/query_by_time.rs

This file was deleted.

27 changes: 0 additions & 27 deletions src/routes/rustcc/query_latest_news.rs

This file was deleted.

30 changes: 0 additions & 30 deletions src/routes/rustcc/query_latest_news_id.rs

This file was deleted.

27 changes: 0 additions & 27 deletions src/startup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ use crate::routes::rebase::query_by_time as rebase_query_by_time;
use crate::routes::rebase::query_latest_news as rebase_query_latest_news;
use crate::routes::rebase::query_latest_news_id as rebase_query_latest_news_id;

use crate::routes::rustcc::query_all as rustcc_query_all;
use crate::routes::rustcc::query_all_author as rustcc_query_all_author;
use crate::routes::rustcc::query_by_hash as rustcc_query_by_hash;
use crate::routes::rustcc::query_by_id as rustcc_query_by_id;
use crate::routes::rustcc::query_by_tag as rustcc_query_by_tag;
use crate::routes::rustcc::query_by_time as rustcc_query_by_time;
use crate::routes::rustcc::query_latest_news as rustcc_query_latest_news;
use crate::routes::rustcc::query_latest_news_id as rustcc_query_latest_news_id;

use aion_parse::rebase::get_total_rebase_daily_episode;
use aion_parse::rustcc::get_total_rustcc_daily_episode;
use aion_types::rebase::rebase_daily::RebaseDaliy;
Expand Down Expand Up @@ -142,24 +133,6 @@ pub async fn run(
"/rebase/ids",
get(rebase_query_latest_news_id::list_latest_news_ids),
)
.route("/rustcc/list", get(rustcc_query_all::list_all_items))
.route("/rustcc/list_all", get(rustcc_query_all::list_all))
.route(
"/rustcc/authors",
get(rustcc_query_all_author::list_authors),
)
.route("/rustcc/tags", get(rustcc_query_by_tag::list_tags))
.route("/rustcc/time", get(rustcc_query_by_time::list_by_time)) // todo (query have problem)
.route(
"/rustcc/latest",
get(rustcc_query_latest_news::list_latest_news),
)
.route("/rustcc/by_id", get(rustcc_query_by_id::list_by_id))
.route("/rustcc/by_hash", get(rustcc_query_by_hash::list_by_hash))
.route(
"/rustcc/ids",
get(rustcc_query_latest_news_id::list_latest_news_ids),
)
// logging so we can see whats going on
.layer(
TraceLayer::new_for_http()
Expand Down

0 comments on commit 8e17b3d

Please sign in to comment.