formatted them with fmt
This commit is contained in:
@@ -64,7 +64,7 @@ func GetMovie() gin.HandlerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
func AddMovie() gin.HandlersChain {
|
||||
func AddMovie() gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 100*time.Second)
|
||||
defer cancel()
|
||||
@@ -89,4 +89,4 @@ func AddMovie() gin.HandlersChain {
|
||||
|
||||
c.JSON(http.StatusCreated, result)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user