Ghost/core/server/models/accesstoken.js
Hannah Wolfe 3ff9146d9e Server side cleanup
- remove sessions
- remove all references to csrf
- create a shared base model for the 2 types of token
2014-07-14 21:50:12 +01:00

18 lines
432 B
JavaScript

var ghostBookshelf = require('./base'),
Basetoken = require('./basetoken'),
Accesstoken,
Accesstokens;
Accesstoken = Basetoken.extend({
tableName: 'accesstokens'
});
Accesstokens = ghostBookshelf.Collection.extend({
model: Accesstoken
});
module.exports = {
Accesstoken: ghostBookshelf.model('Accesstoken', Accesstoken),
Accesstokens: ghostBookshelf.collection('Accesstokens', Accesstokens)
};