UNPKG

arrowdbv2demo

Version:
53 lines (51 loc) 975 B
var arrowDBObject = { User: { methods: { createMany :{ httpMethod: 'POST' }, count: { httpMethod: 'GET' }, create: { httpMethod: 'POST' }, delete: { httpMethod: 'DELETE', restMethod: { entry: 'user_id', variables: ['user_id'] } }, deleteMany: { httpMethod: 'DELETE', }, login: { httpMethod: 'GET', postAction: function (err, result) { if (!err && this.appOptions.autoSessionManagement) { this.sessionCookieString = result.cookieString; } } }, logout: { httpMethod: 'GET', postAction: function (/*err, result*/) { if (this.appOptions.autoSessionManagement) { this.sessionCookieString = null; } } }, query: { httpMethod: 'GET' }, get: { httpMethod: 'GET' }, update: { httpMethod: 'PUT' } } } }; module.exports = arrowDBObject;