Commit graph

13 commits

Author SHA1 Message Date
329a92d593 Replace error_status() method by several response types 2019-07-08 20:25:03 +02:00
5c20b27f35 Add database seeding (for tests) 2019-07-08 20:25:03 +02:00
f0764a30fb Move the error_status function to the rest_helpers module 2019-07-08 20:25:03 +02:00
95dd4408b7 Automatically run database migrations on start 2019-07-08 20:25:03 +02:00
6841a3b026 Implement the customer handlers using the model 2019-07-08 20:06:29 +02:00
f4d72b68d2 Add REST helpers and the customer model 2019-07-08 20:06:29 +02:00
344ca286da Add a database pool through a fairing 2019-07-08 20:06:29 +02:00
5e7e4c658e Add error catchers 2019-06-10 10:24:53 +02:00
1559936d4b Add new (insertable) models and associations to models
Also make models updateable (by deriving `AsChangeset`), debuggable
(by deriving `Debug`) and identifiable (by deriving `Identifiable`).

Note that the `CompanyInfo` is not updateable as a new revision
should be created.  Leaving this derive out ensure we cannot
accidentally update it.
2019-06-10 10:24:53 +02:00
4a8b3a48e1 Add first version of the diesel schema and models 2019-06-10 10:24:50 +02:00
420a366b38 Add stub handlers for the complete application
No handler is implemented!
2019-06-10 10:23:33 +02:00
48164aea40 Add support for serving static files from ./static 2019-06-10 10:23:31 +02:00
228aa5ab11 Import initial version into Git 2019-06-10 10:16:31 +02:00