mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
18 lines
329 B
JavaScript
18 lines
329 B
JavaScript
"use strict";
|
|
|
|
|
|
var navigation = {},
|
|
plugins = require('../plugins'),
|
|
db = require('../database');
|
|
|
|
|
|
navigation.get = function(callback) {
|
|
db.getSortedSetRange('navigation:enabled', 0, -1, function(err, data) {
|
|
callback(err, data.map(function(item) {
|
|
return JSON.parse(item);
|
|
}));
|
|
});
|
|
};
|
|
|
|
|
|
module.exports = navigation; |