Skip to content

Instantly share code, notes, and snippets.

@markstory
Forked from chartjes/gist:2003639
Created March 8, 2012 21:43
Show Gist options
  • Save markstory/2003657 to your computer and use it in GitHub Desktop.
Save markstory/2003657 to your computer and use it in GitHub Desktop.
// Front controller for our API
var application_root = __dirname;
var express = require("express");
var path = require("path");
var pg = require('pg');
var app = express.createServer();
var model = require('transactionmodel);
var tm = new model.TransactionModel(pg);
// transactionmodel.js
function TransactionModel(pg) {
this.getCurrent = function(pg) {
return {};
};
}
module.exports.TransactionModel = TransactionModel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment