summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-15 14:47:31 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-15 14:47:31 +0100
commitfe5cd6ad6c61eb13ca99acd1b69cd09b84051404 (patch)
tree4afc8cb5ae4171047d6af17082fb74d49c726abe /config
parent668961c90368b55a3409ae93b96e288f8ebe33a4 (diff)
downloadbar-fe5cd6ad6c61eb13ca99acd1b69cd09b84051404.tar
bar-fe5cd6ad6c61eb13ca99acd1b69cd09b84051404.tar.gz
bar-fe5cd6ad6c61eb13ca99acd1b69cd09b84051404.tar.bz2
bar-fe5cd6ad6c61eb13ca99acd1b69cd09b84051404.tar.xz
bar-fe5cd6ad6c61eb13ca99acd1b69cd09b84051404.zip
Support types
Diffstat (limited to 'config')
-rw-r--r--config/models10
-rw-r--r--config/routes3
2 files changed, 11 insertions, 2 deletions
diff --git a/config/models b/config/models
index aa335df..16b4ce0 100644
--- a/config/models
+++ b/config/models
@@ -4,9 +4,17 @@ Item
4 bought Day Maybe 4 bought Day Maybe
5 expires Day Maybe 5 expires Day Maybe
6 opened Day Maybe 6 opened Day Maybe
7 Foreign Kind fkType normKind
7 deriving Show Eq 8 deriving Show Eq
8Reference 9Reference
9 normKind Text 10 normKind Text
10 kind Text 11 kind Text
12 UniqueRefKind normKind
13 Foreign Kind fkType normKind
14 deriving Show Eq Ord
15Kind
16 normKind Text
17 type Text
18 Primary normKind
11 UniqueKind normKind 19 UniqueKind normKind
12 deriving Show Eq Ord \ No newline at end of file 20 deriving Show Eq \ No newline at end of file
diff --git a/config/routes b/config/routes
index 08babf4..6ed3204 100644
--- a/config/routes
+++ b/config/routes
@@ -7,7 +7,8 @@
7/inv/#ItemId ItemR GET PUT PATCH DELETE 7/inv/#ItemId ItemR GET PUT PATCH DELETE
8 8
9/ref ReferenceListingR GET POST PUT 9/ref ReferenceListingR GET POST PUT
10/ref/#ReferenceId ReferenceItemR GET PUT PATCH DELETE 10/ref/#ReferenceId ReferenceItemR GET PUT DELETE
11/ref/#ReferenceId/delete DeleteRefItemR POST 11/ref/#ReferenceId/delete DeleteRefItemR POST
12
12/kinds KindsR GET 13/kinds KindsR GET
13/list ListR GET POST 14/list ListR GET POST