From a80fcfc8f7aceb411033e316111d782edb592303 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 12 May 2021 17:19:20 +0200 Subject: [PATCH] renamed to angularjs.html + unnecessary memoize --- credger.cr | 2 +- public/{index.html => angularjs.html} | 0 public/js/app.js | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename public/{index.html => angularjs.html} (100%) diff --git a/credger.cr b/credger.cr index 848895e..4d6e2fe 100644 --- a/credger.cr +++ b/credger.cr @@ -15,7 +15,7 @@ public_folder( "#{WD}/public" ) get "/" do |env| env.response.content_type = "text/html" - send_file( env, "#{WD}/public/index.html" ) + send_file( env, "#{WD}/public/angularjs.html" ) end ledger = Ledger.new diff --git a/public/index.html b/public/angularjs.html similarity index 100% rename from public/index.html rename to public/angularjs.html diff --git a/public/js/app.js b/public/js/app.js index 1d8ab9e..e4f3ebc 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -373,7 +373,7 @@ app.service('API', }); }; - API.accounts = _.memoize(function() { + API.accounts = function() { return $http.get('/api/ledger/accounts'); - }); + }; }]);