create type D map[string]interface{}
This commit is contained in:
parent
3c239f6114
commit
1fa09053ac
@ -27,5 +27,5 @@ func anotherHelloWorld(c *ron.Context) {
|
||||
}
|
||||
|
||||
func helloWorldJSON(c *ron.Context) {
|
||||
c.JSON(200, map[string]string{"message": "hello world"})
|
||||
c.JSON(200, ron.D{"message": "hello world"})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user