... | @@ -2,6 +2,7 @@ |
... | @@ -2,6 +2,7 @@ |
|
|
|
|
|
##Adapter.js
|
|
##Adapter.js
|
|
--
|
|
--
|
|
|
|
'''
|
|
export default class Adapter {
|
|
export default class Adapter {
|
|
constructor() {
|
|
constructor() {
|
|
self.mongoose = require('mongoose')
|
|
self.mongoose = require('mongoose')
|
... | @@ -16,7 +17,7 @@ export default class Adapter { |
... | @@ -16,7 +17,7 @@ export default class Adapter { |
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
'''
|
|
##Entity.js
|
|
##Entity.js
|
|
--
|
|
--
|
|
import Joi from 'joi'
|
|
import Joi from 'joi'
|
... | | ... | |