forked from mirror/gin
parent
b1758d3bfa
commit
d852d334f4
|
@ -24,7 +24,7 @@ func main() {
|
||||||
c.String(401, "not authorized")
|
c.String(401, "not authorized")
|
||||||
})
|
})
|
||||||
router.PUT("/error", func(c *gin.Context) {
|
router.PUT("/error", func(c *gin.Context) {
|
||||||
c.String(500, "and error hapenned :(")
|
c.String(500, "and error happened :(")
|
||||||
})
|
})
|
||||||
router.Run(":8080")
|
router.Run(":8080")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue