mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 11:57:02 +00:00
update dependencies
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
var helloView = hero.View{
|
||||
Name: "hello/index.html",
|
||||
Data: map[string]interface{}{
|
||||
Data: map[string]any{
|
||||
"Title": "Hello Page",
|
||||
"MyMessage": "Welcome to my awesome website",
|
||||
},
|
||||
|
||||
@@ -47,7 +47,7 @@ func UpdateMovieByID(ctx iris.Context, service services.MovieService, id uint64)
|
||||
// DeleteMovieByID deletes a movie.
|
||||
// Demo:
|
||||
// curl -i -X DELETE -u admin:password http://localhost:8080/movies/1
|
||||
func DeleteMovieByID(service services.MovieService, id uint64) interface{} {
|
||||
func DeleteMovieByID(service services.MovieService, id uint64) any {
|
||||
wasDel := service.DeleteByID(id)
|
||||
if wasDel {
|
||||
// return the deleted movie's ID
|
||||
|
||||
Reference in New Issue
Block a user