🐛 Site > Fix crash when current project is destroyed
This commit is contained in:
+2
-5
@@ -103,6 +103,8 @@ class Site
|
||||
{
|
||||
this.express.use('/', express.static(path.join(__dirname, '../site/dist')))
|
||||
|
||||
console.log('/' + _project.slug + '/download')
|
||||
|
||||
// Project download route
|
||||
this.express.get('/' + _project.slug + '/download', (request, response) =>
|
||||
{
|
||||
@@ -122,11 +124,6 @@ class Site
|
||||
})
|
||||
|
||||
this.express.use('/' + _project.slug + '/files', express.static(_project.path))
|
||||
|
||||
this.express.get('/*', (request, response) =>
|
||||
{
|
||||
response.sendFile(path.join(__dirname, '../site/dist/index.html'))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user