Skip to content

Commit

Permalink
fix endpoints for offchain agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-sawlani-yral committed Dec 10, 2024
1 parent 449b130 commit 68c4a64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ use axum::routing::post;
use axum::{routing::get, Router};
use canister::mlfeed_cache::off_chain::off_chain_canister_server::OffChainCanisterServer;
use canister::mlfeed_cache::OffChainCanisterService;
use canister::upgrade_user_token_sns_canister::upgrade_user_token_sns_canister_handler;
use canister::upgrade_user_token_sns_canister::{
upgrade_user_token_sns_canister_for_entire_network, upgrade_user_token_sns_canister_handler,
};
use canister::upload_user_video::upload_user_video_handler;
use config::AppConfig;
use env_logger::{Builder, Target};
Expand Down Expand Up @@ -72,6 +74,10 @@ async fn main() -> Result<()> {
"/upgrade_user_token_sns_canister/:individual_user_canister_id",
post(upgrade_user_token_sns_canister_handler),
)
.route(
"/upgrade_user_token_sns_canister_for_entire_network",
post(upgrade_user_token_sns_canister_for_entire_network),
)
.route(
"/get-snapshot",
get(canister::snapshot::get_snapshot_canister),
Expand Down
2 changes: 1 addition & 1 deletion src/qstash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ pub fn qstash_router<S>(app_state: Arc<AppState>) -> Router<S> {
post(upgrade_all_sns_canisters_for_a_user_canister),
)
.route(
"upgrade_user_token_sns_canister_for_entire_network",
"/upgrade_user_token_sns_canister_for_entire_network",
post(upgrade_user_token_sns_canister_for_entire_network),
)
.layer(ServiceBuilder::new().layer(middleware::from_fn_with_state(
Expand Down

0 comments on commit 68c4a64

Please sign in to comment.