feat(handlers): Add thread submission handler
This commit is contained in:
parent
fc7ca2900d
commit
094b1e0722
3 changed files with 17 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ pub struct Post {
|
|||
pub posted: DateTime<Utc>,
|
||||
}
|
||||
|
||||
#[derive(Insertable)]
|
||||
#[derive(Deserialize, Insertable)]
|
||||
#[table_name="threads"]
|
||||
pub struct NewThread {
|
||||
pub title: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue