aboutsummaryrefslogtreecommitdiffstats
path: root/src/models.rs
Commit message (Collapse)AuthorAgeFilesLines
* Make proper module of modelsHarald Eilertsen2018-01-101-51/+0
|
* Adding edit/update logic.Harald Eilertsen2018-01-101-3/+10
| | | | The model is not done yet, though. No net on the train.
* Move creating post in db to Post model impl.Harald Eilertsen2017-12-231-7/+17
|
* Implement posts/show handler.Harald Eilertsen2017-12-231-0/+6
|
* Move get_post into impl and rename.Harald Eilertsen2017-12-231-6/+8
|
* Move get_posts function to models.Harald Eilertsen2017-12-231-0/+9
|
* Add handlers for creating new Posts.Harald Eilertsen2017-11-221-1/+11
|
* Derive FromForm for models::Post.Harald Eilertsen2017-11-211-1/+1
| | | | | This allows us to pass in forms that will translate into proper form objects.
* Implement default trait for Posts using derive.Harald Eilertsen2017-11-211-1/+1
|
* Use serde_json to create json response when requested by client.Harald Eilertsen2017-11-201-1/+1
|
* Add schema for posts, and display them on index page.Harald Eilertsen2017-10-011-0/+7