add: finish forge stuff
This commit is contained in:
parent
53fb4d5778
commit
68071b96c8
21 changed files with 329 additions and 18 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue