mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-17 21:12:50 +01:00
25 lines
411 B
JavaScript
25 lines
411 B
JavaScript
'use strict';
|
|
|
|
var meta = require('../../meta');
|
|
|
|
var soundsController = {};
|
|
|
|
soundsController.get = function(req, res, next) {
|
|
meta.sounds.getFiles(function(err, sounds) {
|
|
if (err) {
|
|
return next(err);
|
|
}
|
|
|
|
sounds = Object.keys(sounds).map(function(name) {
|
|
return {
|
|
name: name
|
|
};
|
|
});
|
|
|
|
res.render('admin/general/sounds', {
|
|
sounds: sounds
|
|
});
|
|
});
|
|
};
|
|
|
|
module.exports = soundsController; |