Commit 707b1e5b authored by Athanasios's avatar Athanasios
Browse files

inject repository url

Inject the repository url in the home page.
parent c7d97741
......@@ -3,6 +3,9 @@ const config = {
storage: {
type: "JSON",
path: "./assets/assets.json"
},
repository:{
url: "https://gitlab.com/tomeof/node-3dps"
}
}
......
const express = require("express");
const pug = require("pug");
const config = require("../config");
let router = express.Router();
......@@ -18,7 +20,10 @@ router.route("/")
`;
const compiledFunction = pug.compileFile("./views/home.pug");
let home = compiledFunction({art: art});
let home = compiledFunction({
art: art,
url: config.repository.url
});
res.set("Content-Type", "text/html");
res.send(home);
......
......@@ -16,4 +16,4 @@ html(lang="en")
div(class="centered")
pre= art
p This is an impementation of the 3D Portrayal Service.
p For more details visit #[a( href="https://gitlab.com/tomeof/node-3dps", target="_blank" ) https://gitlab.com/tomeof/node-3dps]
p For more details visit #[a( href=`${url}`, target="_blank" ) !{url}]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment