add: finish forge stuff

This commit is contained in:
trisua 2025-06-10 22:02:06 -04:00
parent 53fb4d5778
commit 68071b96c8
21 changed files with 329 additions and 18 deletions

View file

@ -121,6 +121,10 @@ pub fn routes() -> Router {
"/posts/{id}/poll_vote",
post(communities::posts::vote_request),
)
.route(
"/posts/{id}/open",
post(communities::posts::update_is_open_request),
)
// drafts
.route("/drafts", post(communities::drafts::create_request))
.route("/drafts/{id}", delete(communities::drafts::delete_request))
@ -639,3 +643,8 @@ pub struct VoteInPoll {
pub struct AppendAssociations {
pub tokens: Vec<String>,
}
#[derive(Deserialize)]
pub struct UpdatePostIsOpen {
pub open: bool,
}