Browse files

Missing semicolons

  • Loading branch information...
1 parent 9a076e5 commit 399d59eebf2130c1577a63665900a56f9947853d @kristopher committed Jul 12, 2013
Showing with 7 additions and 5 deletions.
  1. +7 −5 app.js
View
12 app.js
@@ -8,7 +8,9 @@ var express = require('express'),
path = require('path'),
url = require('url'),
app = express(),
- redis = require('redis'), db, redis_url = url.parse('redis://localhost:6379');
+ redis = require('redis'),
+ redis_url = url.parse('redis://localhost:6379'),
+ db;
module.exports = {
db: function() {
@@ -96,7 +98,7 @@ var middleware = [
require_referer,
set_subdomain,
set_content_type
-]
+];
app.get('/', middleware, function(req, res, next) {
Entry.get(req.subdomain, req.param('page') || 1, function(reply) {
@@ -108,7 +110,7 @@ app.get('/', middleware, function(req, res, next) {
}
}, function(err) {
console.error(err);
- res.statusCode = 500
+ res.statusCode = 500;
res.end("[]");
});
});
@@ -121,11 +123,11 @@ app.post('/', middleware, function(req, res, next) {
});
if (entry.isValid()) {
entry.save(function() {
- res.statusCode = 201
+ res.statusCode = 201;
res.end(entry.toJSON())
}, function(err) {
console.error(err);
- res.statusCode = 500
+ res.statusCode = 500;
res.end('[]');
});
} else {

0 comments on commit 399d59e

Please sign in to comment.