From 617258890e01dd40c6c972555675610ef86e64e4 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 30 Dec 2017 22:04:26 +0200 Subject: [PATCH] add `GetRoute` for MVC Controllers. Give the chance to change rsome route's properties like Name (used for reverse routing in templates, optionally). Former-commit-id: 5ee9b1f97ff3c98cd8e5faddd23a87bbafb8e2e0 --- HISTORY.md | 8 +++--- _examples/README.md | 1 + mvc/controller.go | 48 ++++++++++++++++++++++++++--------- mvc/controller_handle_test.go | 27 +++++++++++++++++++- 4 files changed, 67 insertions(+), 17 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 56f6dc42..7e43f088 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -16,12 +16,12 @@ Developers are not forced to upgrade if they don't really need it. Upgrade whene > Iris uses the [vendor directory](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo) feature, so you get truly reproducible builds, as this method guards against upstream renames and deletes. **How to upgrade**: Open your command-line and execute this command: `go get -u github.com/kataras/iris` or let the automatic updater do that for you. - -