feat(handlers): Add thread submission handler

This commit is contained in:
Vincent Ambo 2018-04-08 20:01:32 +02:00
parent fc7ca2900d
commit 094b1e0722
3 changed files with 17 additions and 1 deletions

View file

@ -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,