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

update dependencies

This commit is contained in:
Gerasimos (Makis) Maropoulos
2025-08-15 23:29:20 +03:00
parent de4f462198
commit a8a3afea22
186 changed files with 694 additions and 689 deletions

View File

@@ -14,7 +14,7 @@ type HelloController struct{}
var helloView = mvc.View{
Name: "hello/index.html",
Data: map[string]interface{}{
Data: map[string]any{
"Title": "Hello Page",
"MyMessage": "Welcome to my awesome website",
},

View File

@@ -67,7 +67,7 @@ func (c *MovieController) PutBy(ctx iris.Context, id int64) (datamodels.Movie, e
// DeleteBy deletes a movie.
// Demo:
// curl -i -X DELETE -u admin:password http://localhost:8080/movies/1
func (c *MovieController) DeleteBy(id int64) interface{} {
func (c *MovieController) DeleteBy(id int64) any {
wasDel := c.Service.DeleteByID(id)
if wasDel {
// return the deleted movie's ID