Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Serve static files from public directory if no other route match. | Harald Eilertsen | 2018-01-14 | 1 | -1/+2 |
| | |||||
* | Improve error message with missing database url. | Harald Eilertsen | 2018-01-14 | 1 | -22/+20 |
| | |||||
* | Implement deleting posts. | Harald Eilertsen | 2018-01-12 | 1 | -1/+2 |
| | |||||
* | Read .env file in main. | Harald Eilertsen | 2018-01-11 | 1 | -1/+8 |
| | |||||
* | Move homepage processing to separate controller. | Harald Eilertsen | 2018-01-11 | 1 | -22/+5 |
| | |||||
* | Move controller code to own module. | Harald Eilertsen | 2018-01-11 | 1 | -2/+9 |
| | |||||
* | Drop the lib. | Harald Eilertsen | 2018-01-11 | 1 | -7/+12 |
| | | | | | | 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. | ||||
* | Adding edit/update logic. | Harald Eilertsen | 2018-01-10 | 1 | -1/+1 |
| | | | | The model is not done yet, though. No net on the train. | ||||
* | Order and cosmetics on extern crate declarations. | Harald Eilertsen | 2017-12-30 | 1 | -4/+5 |
| | |||||
* | Move creating post in db to Post model impl. | Harald Eilertsen | 2017-12-23 | 1 | -1/+1 |
| | |||||
* | Implement posts/show handler. | Harald Eilertsen | 2017-12-23 | 1 | -1/+1 |
| | |||||
* | Move get_post into impl and rename. | Harald Eilertsen | 2017-12-23 | 1 | -2/+2 |
| | |||||
* | Move get_posts function to models. | Harald Eilertsen | 2017-12-23 | 1 | -11/+2 |
| | |||||
* | Move implement_responder_for macro into crate. | Harald Eilertsen | 2017-12-23 | 1 | -25/+1 |
| | | | | | This is so we can use it in other modules too. Besides it makes things slightly cleaner. | ||||
* | Move posts module to it's own source file. | Harald Eilertsen | 2017-12-17 | 1 | -30/+2 |
| | |||||
* | Move responder impl's for templates to a macro. | Harald Eilertsen | 2017-11-22 | 1 | -15/+19 |
| | |||||
* | Add handlers for creating new Posts. | Harald Eilertsen | 2017-11-22 | 1 | -0/+40 |
| | |||||
* | Use route decorators to produce different output formats. | Harald Eilertsen | 2017-11-20 | 1 | -22/+21 |
| | | | | | | This seems to be the more proper way of doing it. Also makes it much clearer which routes exists, and what formats they accept. Both in the code and in the status output. | ||||
* | Use serde_json to create json response when requested by client. | Harald Eilertsen | 2017-11-20 | 1 | -7/+18 |
| | |||||
* | Implement responder for IndexTemplate. | Harald Eilertsen | 2017-11-17 | 1 | -3/+15 |
| | | | | | | | This means the actual handler just returns the template, which is then rendered by the responder for that type. Looking into making this generic so the responder can return data in other formats as well, like json or xml. | ||||
* | Set correct content-type for response. | Harald Eilertsen | 2017-11-16 | 1 | -2/+3 |
| | |||||
* | Pass posts to the template and iterate over them. | Harald Eilertsen | 2017-11-16 | 1 | -6/+2 |
| | |||||
* | Add Bart templating engine. | Harald Eilertsen | 2017-11-16 | 1 | -10/+15 |
| | |||||
* | Add schema for posts, and display them on index page. | Harald Eilertsen | 2017-10-01 | 1 | -2/+19 |
| | |||||
* | Get database connection on request | Harald Eilertsen | 2017-10-01 | 1 | -1/+1 |
| | |||||
* | Move database setup to lib.rs. | Harald Eilertsen | 2017-10-01 | 1 | -28/+2 |
| | |||||
* | Connect to database pool when igniting. | Harald Eilertsen | 2017-10-01 | 1 | -1/+29 |
| | |||||
* | Initial launch! | Harald Eilertsen | 2017-10-01 | 1 | -0/+15 |