this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 15 lines 428 B view raw
1use anyhow::Result; 2use axum::{extract::State, response::IntoResponse, Json}; 3use serde_json::json; 4 5use crate::errors::SupercellError; 6 7use super::context::WebContext; 8 9pub async fn handle_describe_feed_generator( 10 State(web_context): State<WebContext>, 11) -> Result<impl IntoResponse, SupercellError> { 12 Ok(Json(json!({ 13 "feeds": web_context.feeds.keys().map(|k| json!({"uri": k})).collect::<Vec<_>>(), 14 }))) 15}