memo/lib/data.js
Luc Didry 9af9915d4e Add revisions system
Conflicts:
	client/css/style.css
	views/layout.jade
2016-09-15 22:16:52 +02:00

44 lines
932 B
JavaScript

var conf = require('../config.js').database;
exports.db = require('./data/'+conf.type+'.js').db;
/*
var db = function(callback) { }
db.prototype = {
clearRoom: function(room, callback) { },
// theme commands
setTheme: function(room, theme) { },
getTheme: function(room, callback) { },
// revisions commands
setRevisions: function(room, revisions) { },
getRevisions: function(room, callback) { },
// Column commands
createColumn: function(room, name, callback) { },
getAllColumns: function(room, callback) { },
deleteColumn: function(room) { },
setColumns: function(room, columns) { },
// Card commands
createCard: function(room, id, card) { },
getAllCards: function(room, callback) { },
cardEdit: function(room, id, text) { },
cardSetXY: function(room, id, x, y) { },
deleteCard: function(room, id) { },
addSticker: function(room, cardId, stickerId) { }
};
exports.db = db;
*/