mirror of
https://github.com/gwenhael-le-moine/credger.git
synced 2024-12-26 09:58:36 +01:00
renamed to angularjs.html + unnecessary memoize
This commit is contained in:
parent
31abc55cba
commit
a80fcfc8f7
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ public_folder( "#{WD}/public" )
|
||||||
get "/" do |env|
|
get "/" do |env|
|
||||||
env.response.content_type = "text/html"
|
env.response.content_type = "text/html"
|
||||||
|
|
||||||
send_file( env, "#{WD}/public/index.html" )
|
send_file( env, "#{WD}/public/angularjs.html" )
|
||||||
end
|
end
|
||||||
|
|
||||||
ledger = Ledger.new
|
ledger = Ledger.new
|
||||||
|
|
|
@ -373,7 +373,7 @@ app.service('API',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
API.accounts = _.memoize(function() {
|
API.accounts = function() {
|
||||||
return $http.get('/api/ledger/accounts');
|
return $http.get('/api/ledger/accounts');
|
||||||
});
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|
Loading…
Reference in a new issue