Commit 15005634 authored by Evren Kutar's avatar Evren Kutar

logout url fix

parent fd6c127c
......@@ -93,7 +93,7 @@ var app = angular.module(
return {
link: function($scope, $element, $rootScope){
$element.on('click', function(){
$http.post('http://'+window.location.host+':9001/logout', {}).then(function () {
$http.post('http://'+window.location.hostname+':9001/logout', {}).then(function () {
$rootScope.loggedInUser = false;
console.log($rootScope.loggedInUser);
$location.path("/login");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment