Moved backend to a separate directory

This commit is contained in:
Sebastian Seedorf
2020-11-24 00:39:20 +01:00
parent f7d790818a
commit ef3af370fd
16 changed files with 9 additions and 17 deletions

6
backend/views/error.pug Normal file
View File

@@ -0,0 +1,6 @@
extends layout
block content
h1= message
h2= error.status
pre #{error.stack}

7
backend/views/index.pug Normal file
View File

@@ -0,0 +1,7 @@
extends layout
block content
h1= title
p Welcome to #{title}! 
a(href="/logout") Want so say goodbye?
p This name is fetched on server-side: #{email}

17
backend/views/layout.pug Normal file
View File

@@ -0,0 +1,17 @@
- const baseUrl = DefaultConfig.EXTERNAL_BASE_URL;
doctype html
html
head
title= title
link(rel='stylesheet', href=baseUrl+'/styles/style.css')
body
block content
script(type='text/javascript', src=baseUrl+'/js/polyfill.js')
script(type='text/javascript', src=baseUrl+'/js/require-2.3.6.min.js')
script(type='text/javascript', src=baseUrl+'/js/bundle.js')
script.
require(['src/index'], function (index) {
index.setConfig({EXTERNAL_BASE_URL: '#{baseUrl}'});
});
if !DefaultConfig.isProduction
script(type='text/javascript', src=baseUrl+'/auto-reload/client.js')