UNPKG
feathers-blipp
Version:
latest (0.0.0)
0.0.0
feathers blipp
github.com/feathersjs/feathers-blipp
feathersjs/feathers-blipp
feathers-blipp
/
example
/
src
/
models
/
message.model.js
13 lines
(10 loc)
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
NeDB
=
require
(
'nedb'
);
const
path
=
require
(
'path'
); module.exports =
function
(
app
)
{
const
dbPath
= app.
get
(
'nedb'
);
const
Model
=
new
NeDB
({
filename
: path.
join
(dbPath,
'message.db'
),
autoload
:
true
});
return
Model; };