aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Drop the lib.Harald Eilertsen2018-01-111-86/+0
| | | | | | The misc stuff from the lib root was moved to the utils module (terrible name, it's meant to be temporary.) The modules under the lib has been moved directly under the app.
* Order and cosmetics on extern crate declarations.Harald Eilertsen2017-12-301-8/+5
|
* Don't import modules in macro.Harald Eilertsen2017-12-231-10/+5
| | | | | Didn't work well when macro was invoked more than once for each source file. Use full references to all symbols instead.
* Move implement_responder_for macro into crate.Harald Eilertsen2017-12-231-0/+25
| | | | | This is so we can use it in other modules too. Besides it makes things slightly cleaner.
* Derive FromForm for models::Post.Harald Eilertsen2017-11-211-0/+3
| | | | | This allows us to pass in forms that will translate into proper form objects.
* Use serde_json to create json response when requested by client.Harald Eilertsen2017-11-201-0/+3
|
* Add schema for posts, and display them on index page.Harald Eilertsen2017-10-011-2/+5
|
* Get database connection on requestHarald Eilertsen2017-10-011-0/+33
|
* Move database setup to lib.rs.Harald Eilertsen2017-10-011-0/+27