:construction:🎨 Site > Improve structure/build and add example

This commit is contained in:
brunosimon
2017-08-02 23:58:10 +02:00
parent 6859c394f5
commit 9d6942b0df
57 changed files with 5096 additions and 299 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ class Site
*/
createProjectRoute(_project)
{
this.express.use('/', express.static(path.join(__dirname, '../site-webpack/dist')))
this.express.use('/', express.static(path.join(__dirname, '../site/dist')))
// Project route
this.express.get('/' + _project.slug, (request, response) =>
@@ -111,7 +111,7 @@ class Site
response.send(`
<a href="/${_project.slug}/download" download>download project</a>
<a href="/${_project.slug}/files/empty.txt" download>download file</a>
<form action="#" class="infos-form">
<input type="text" class="name" value="" /> Name
<input type="submit" value="send" />