From 3552b9579b582134fdacca1b505916ef97fe6c9e Mon Sep 17 00:00:00 2001 From: twof Date: Mon, 1 Oct 2018 15:05:55 -0700 Subject: [PATCH] updated readme with example output --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 8160af4..24184c7 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,22 @@ try router.crudRegister(for: User.self) { controller in } ``` +results in + +``` +GET /user +GET /user/:id +POST /user +PUT /user/:id +DELETE /user/:id + +GET/user/:id/todo +GET /user/:id/todo/:id +POST/user/:id/todo +PUT/user/:id/todo/:id +DELETE/user/:id/todo/:id +``` + within the supplied closure, you can also expose routes for related `Parent`s and `Sibling`s ### Future features