adding a route to show a single movie
This commit is contained in:
@@ -18,6 +18,8 @@ func main() {
|
|||||||
|
|
||||||
router.GET("/movies", controller.GetMovies())
|
router.GET("/movies", controller.GetMovies())
|
||||||
|
|
||||||
|
router.GET("/movie/:imdb_id", controller.GetMovie())
|
||||||
|
|
||||||
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