mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
Nothing special here,yet, stay tuned
This commit is contained in:
@@ -112,7 +112,7 @@ func main(){
|
||||
|
||||
// take the :id from the path, parse to integer
|
||||
// and set it to the new userID local variable.
|
||||
userID := ctx.ParamInt("id")
|
||||
userID,_ := ctx.ParamInt("id")
|
||||
|
||||
// userRepo, imaginary database service <- your only job.
|
||||
user := userRepo.GetByID(userID)
|
||||
|
||||
Reference in New Issue
Block a user