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) {