mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Removing unused config and language files
This commit is contained in:
@@ -23,22 +23,10 @@ app.use(require('webpack-dev-middleware')(compiler, {
|
||||
|
||||
app.use(require('webpack-hot-middleware')(compiler, {log: () => {}}))
|
||||
|
||||
app.get('/talk.config.json', function (req, res) {
|
||||
res.sendFile(path.join(__dirname, 'talk.config.json'))
|
||||
})
|
||||
|
||||
app.get('/default.css', function (req, res) {
|
||||
res.sendFile(path.join(__dirname, '/style/default.css'))
|
||||
})
|
||||
|
||||
app.get('/translations/en.json', function (req, res) {
|
||||
res.sendFile(path.join(__dirname, '..', 'coral-framework', 'i18n', 'translations', 'en.json'))
|
||||
})
|
||||
|
||||
app.get('/translations/es.json', function (req, res) {
|
||||
res.sendFile(path.join(__dirname, '..', 'coral-framework', 'i18n', 'translations', 'es.json'))
|
||||
})
|
||||
|
||||
app.get('*', function (req, res) {
|
||||
res.sendFile(path.join(__dirname, 'index.html'))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user