1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 02:47:04 +00:00

update deps

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-11-25 04:47:36 +02:00
parent 763300b566
commit afa1d89a23
8 changed files with 125 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
package main
package main // Look README.md
import (
"context"
@@ -65,7 +65,8 @@ func main() {
}
func index(ctx iris.Context) {
user := ctx.User()
user, _ := ctx.User().GetRaw()
// user is a type of main.User
ctx.JSON(user)
}