From 3cfd483ae42bd86b5ad920b2fe04c2496f6e2cc5 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Sat, 23 Sep 2017 09:45:28 +0000 Subject: [PATCH] Some modifs --- templates/base.pug | 2 +- utils/create-url.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/templates/base.pug b/templates/base.pug index df26568..3b7781c 100644 --- a/templates/base.pug +++ b/templates/base.pug @@ -37,7 +37,7 @@ html a.nav-link(href='#') | Username li.nav-item - a.btn.btn-light(href='#', role='button') + a.btn.btn-light(href=getUrl("logout"), role='button') | Log out .container block content diff --git a/utils/create-url.js b/utils/create-url.js index d19e1d0..dcffe49 100644 --- a/utils/create-url.js +++ b/utils/create-url.js @@ -6,10 +6,6 @@ class Url { this.view = view; this.name = name; } - - toString() { - return this.url; - } } function getUrl(name) {