feat: add rss feed and remove rev feature
This commit is contained in:
parent
3937d8fd75
commit
5356e2dbb4
8 changed files with 268 additions and 13 deletions
|
|
@ -53,6 +53,7 @@ pub async fn run() -> Result<(), Box<dyn std::error::Error>> {
|
|||
get(handlers::get_questions).post(handlers::post_question),
|
||||
)
|
||||
.route("/api/questions/stats", get(handlers::get_question_stats))
|
||||
.route("/qa/rss.xml", get(handlers::get_question_rss))
|
||||
.route("/api/webhook", post(handlers::webhook))
|
||||
.layer(CorsLayer::permissive())
|
||||
.with_state(state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue