Commit graph

19 commits

Author SHA1 Message Date
Magnus Hoff
1d485798eb Implement /_new, for creating new articles without making up a URL first 2017-10-02 17:08:59 +02:00
Magnus Hoff
ad4addfc8c Implement support for inserting new articles 2017-09-21 11:38:52 +02:00
Magnus Hoff
0a3cb53a66 Add NewArticleResource
Serve placeholder page for non-existing articles.
Redirect user-generated slugs to canonical slugs.
2017-09-21 10:58:54 +02:00
Magnus Hoff
01dafa7d37 Special case front page so it never gets a non-empty slug 2017-09-21 10:23:30 +02:00
Magnus Hoff
3feed530ff Implement support for editing page title 2017-09-21 10:09:57 +02:00
Magnus Hoff
631e76324b Cleanup. Make use of .first() and .optional() from Diesel 2017-09-20 23:40:07 +02:00
Magnus Hoff
debf44623c Automatically generate slugs for articles based on title 2017-09-20 23:31:25 +02:00
Magnus Hoff
e1d823d22e Implement lookup and redirect of articles by slugs 2017-09-20 11:54:26 +02:00
Magnus Hoff
320ec98d65 Take CPU pool as dependency for State 2017-09-10 12:29:33 +02:00
Magnus Hoff
6fb1062376 Execute State functions in thread pool 2017-09-08 16:21:24 +02:00
Magnus Hoff
b3e7552c16 Make State-functons return Future-s 2017-09-08 15:58:15 +02:00
Magnus Hoff
50b9ebf59e Make State::update_article return a Future.
In preparation for threading
2017-09-08 15:37:58 +02:00
Magnus Hoff
6f94b2f960 Silence some warnings 2017-09-08 14:43:47 +02:00
Magnus Hoff
1a5b39b3a1 Implement editing 2017-09-05 17:07:57 +02:00
Magnus Hoff
60a87d1898 Introduce db connection pool. Derive Clone for State 2017-09-05 15:19:37 +02:00
Magnus Hoff
76302353e1 HTTP handling refactoring.
Refactor to lookup/route and resource abstractions.

Bake in futures/async support.

Implement more of the HTTP standard.
2017-08-25 23:57:06 +02:00
Johannes Hoff
e997c0f952 Read articles from the actual DB 2017-08-20 23:44:52 +02:00
Magnus Hoff
35e7bad7d2 Simple rendering of stubbed article 2017-08-20 22:17:16 +02:00
Johannes Hoff
139a5b51b6 Propage database connections; dispatch requests 2017-08-20 21:59:16 +02:00