got a basic route going
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
controller "github.com/captbrogers/MagicStreamServer/controllers"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -14,6 +16,8 @@ func main() {
|
||||
ctx.String(200, "Ahoy matey!")
|
||||
})
|
||||
|
||||
router.GET("/movies", controller.GetMovies())
|
||||
|
||||
if err := router.Run(":5180"); err != nil {
|
||||
log.Fatal("failure to start the server")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user