Skip to content

Commit

Permalink
Update requires for reorganization
Browse files Browse the repository at this point in the history
  • Loading branch information
ericf committed Apr 21, 2013
1 parent 62e5032 commit 441724e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var express = require('express'),
exphbs = require('express3-handlebars'),

config = require('../config'),
helpers = require('./helpers'),
config = require('./config'),
helpers = require('./lib/helpers'),
middleware = require('./middleware'),
routes = require('./routes'),

Expand Down
2 changes: 1 addition & 1 deletion lib/invitations.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var async = require('async'),
crypto = require('crypto'),
pg = require('pg'),

config = require('../../config'),
config = require('../config'),

INVITATIONS = 'SELECT * FROM invitations ORDER BY id',
INVITATION_BY_ID = 'SELECT * FROM invitations WHERE id=$1 LIMIT 1',
Expand Down
2 changes: 1 addition & 1 deletion routes/combo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var combo = require('combohandler'),
config = require('../../config');
config = require('../config');

function send (req, res) {
res.send(res.body);
Expand Down
2 changes: 1 addition & 1 deletion routes/invitations.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var invs = require('../services/invitations');
var invs = require('../lib/invitations');

exports.read = function (req, res, next) {
invs.loadInvitation(req.invitationId, function (err, invitation) {
Expand Down
2 changes: 1 addition & 1 deletion routes/rsvp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var STATUS_CODES = require('http').STATUS_CODES,

invs = require('../services/invitations');
invs = require('../lib/invitations');

exports.login = [invIdFromUrl, loadInvitation, setSessionInvId];
exports.edit = [invIdFromSession, loadInvitation, renderInvitation];
Expand Down
2 changes: 1 addition & 1 deletion scripts/gen-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var csv = require('csv'),
path = require('path'),

invs = require('../lib/services/invitations'),
invs = require('../lib/invitations'),
output = process.argv[2];

if (output) {
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var http = require('http'),
app = require('./lib/app'),
app = require('./app'),
port = app.get('port');

http.createServer(app).listen(port, function () {
Expand Down

0 comments on commit 441724e

Please sign in to comment.