
        if (location.hostname == "localhost"){
          playlistApiUrl = "http://localhost:81/"
        } else {
          playlistApiUrl = "http://" + location.hostname +  ":" + location.port + "/api/playlists"
        }

        var app = angular.module('videos', []);
        app.controller('videosController', function ($scope, $http) {

            $http.get(playlistApiUrl)
                .then(function (response) {

                    console.log(response);
                    //$scope.