mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Use chi style middle ware
This commit is contained in:
committed by
Travis Reeder
parent
570e9265f1
commit
cf2c3cf404
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func (s *Server) handleAppCreate(c *gin.Context) {
|
||||
ctx := c.MustGet("mctx").(MiddlewareContext)
|
||||
ctx := c.Request.Context()
|
||||
|
||||
var wapp models.AppWrapper
|
||||
|
||||
@@ -23,7 +23,7 @@ func (s *Server) handleAppCreate(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if err := wapp.Validate(); err != nil {
|
||||
if err = wapp.Validate(); err != nil {
|
||||
handleErrorResponse(c, err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user