feat: category filtering knowledge and content

This commit is contained in:
Per Stark
2025-04-15 11:20:55 +02:00
parent 3d420582dc
commit a0b80a911e
13 changed files with 492 additions and 121 deletions

View File

@@ -1,7 +1,9 @@
mod handlers;
use axum::{extract::FromRef, routing::get, Router};
use handlers::{patch_text_content, show_content_page, show_text_content_edit_form};
use handlers::{
delete_text_content, patch_text_content, show_content_page, show_text_content_edit_form,
};
use crate::html_state::HtmlState;
@@ -14,6 +16,8 @@ where
.route("/content", get(show_content_page))
.route(
"/content/:id",
get(show_text_content_edit_form).patch(patch_text_content),
get(show_text_content_edit_form)
.patch(patch_text_content)
.delete(delete_text_content),
)
}