From fe5cd6ad6c61eb13ca99acd1b69cd09b84051404 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 15 Mar 2017 14:47:31 +0100 Subject: Support types --- config/models | 10 +++++++++- config/routes | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/models b/config/models index aa335df..16b4ce0 100644 --- a/config/models +++ b/config/models @@ -4,9 +4,17 @@ Item bought Day Maybe expires Day Maybe opened Day Maybe + Foreign Kind fkType normKind deriving Show Eq Reference normKind Text kind Text + UniqueRefKind normKind + Foreign Kind fkType normKind + deriving Show Eq Ord +Kind + normKind Text + type Text + Primary normKind UniqueKind normKind - deriving Show Eq Ord \ No newline at end of file + 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 @@ /inv/#ItemId ItemR GET PUT PATCH DELETE /ref ReferenceListingR GET POST PUT -/ref/#ReferenceId ReferenceItemR GET PUT PATCH DELETE +/ref/#ReferenceId ReferenceItemR GET PUT DELETE /ref/#ReferenceId/delete DeleteRefItemR POST + /kinds KindsR GET /list ListR GET POST -- cgit v1.2.3