UNPKG
candy
Version:
latest (0.1.7)
0.1.7
0.1.6
0.1.4
0.1.2
0.1.1
0.1.0
0.0.9
0.0.8
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
a micro bbs system based on duoshuo.com apis
github.com/turingou/candy
turingou/candy
candy
/
ctrlers
/
config.js
12 lines
(8 loc)
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
exports = module.exports =
function
(
$models
,
$Ctrler
)
{
var
Config =
new
$Ctrler
(
$models
.config), config =
$models
.config; Config.read =
function
(
callback
)
{ config.
findOne
({}).
exec
(callback); };
return
Config; }