Add inbox service

parent ccfea224
......@@ -70,6 +70,19 @@ app.get('/outbox', function (req, res, next) {
res.send({})
})
// Feathers service for inbox
app.use('/inbox', {
requests: [],
create(data, params) {
this.requests.push(data)
console.log('/inbox CREATE')
console.log(data)
return Promise.resolve(data)
}
})
app.get('/following', function (req, res, next) {
console.log('👀 Following')
console.log(` ↳ Returning empty response.\n`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment