finished localizations except for download.js
This commit is contained in:
parent
45eccc1cad
commit
7ed30f497b
8 changed files with 546 additions and 2461 deletions
|
@ -19,6 +19,8 @@ const mozlog = require('./log.js');
|
|||
const log = mozlog('send.server');
|
||||
|
||||
const STATIC_PATH = path.join(__dirname, '../public');
|
||||
const L20N = path.join(__dirname, '../node_modules/l20n');
|
||||
const LOCALES = path.join(__dirname, '../public/locales');
|
||||
|
||||
const app = express();
|
||||
|
||||
|
@ -63,6 +65,9 @@ app.use(
|
|||
app.use(busboy());
|
||||
app.use(bodyParser.json());
|
||||
app.use(express.static(STATIC_PATH));
|
||||
app.use('/l20n', express.static(L20N));
|
||||
app.use('/download/*/l20n', express.static(L20N));
|
||||
app.use('/download/*/locales', express.static(LOCALES));
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.render('index', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue