mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
update recursively when new version is available
This would take more but it's safer approach for common usage. Former-commit-id: 87e11d9ea6dbb0df438e91fb478ca08e1a631d31
This commit is contained in:
@@ -290,7 +290,7 @@ type (
|
||||
)
|
||||
|
||||
func writeRelatives(c mvc.Controller) {
|
||||
c.Ctx.JSON(iris.Map{
|
||||
c.Ctx.JSON(context.Map{
|
||||
"RelPath": c.RelPath(),
|
||||
"TmplPath": c.RelTmpl(),
|
||||
})
|
||||
@@ -309,7 +309,7 @@ func (c *UserProfilePostController) Get() {
|
||||
|
||||
func TestControllerRelPathAndRelTmpl(t *testing.T) {
|
||||
app := iris.New()
|
||||
var tests = map[string]iris.Map{
|
||||
var tests = map[string]context.Map{
|
||||
// UserController
|
||||
"/user": {"RelPath": "/", "TmplPath": "user/"},
|
||||
"/user/42": {"RelPath": "/42", "TmplPath": "user/"},
|
||||
|
||||
Reference in New Issue
Block a user