adding route for add movie
This commit is contained in:
@@ -20,6 +20,8 @@ func main() {
|
|||||||
|
|
||||||
router.GET("/movie/:imdb_id", controller.GetMovie())
|
router.GET("/movie/:imdb_id", controller.GetMovie())
|
||||||
|
|
||||||
|
router.POST("/movie", controller.AddMovie())
|
||||||
|
|
||||||
if err := router.Run(":5180"); err != nil {
|
if err := router.Run(":5180"); err != nil {
|
||||||
log.Fatal("failure to start the server")
|
log.Fatal("failure to start the server")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user