|
@ -6,6 +6,7 @@ |
|
|
var express = require('express') |
|
|
var express = require('express') |
|
|
, Canvas = require('../lib/canvas') |
|
|
, Canvas = require('../lib/canvas') |
|
|
, Image = Canvas.Image |
|
|
, Image = Canvas.Image |
|
|
|
|
|
, bodyParser = require('body-parser') |
|
|
, app = express(); |
|
|
, app = express(); |
|
|
|
|
|
|
|
|
// Config
|
|
|
// Config
|
|
@ -15,12 +16,8 @@ app.set('view engine', 'jade'); |
|
|
|
|
|
|
|
|
// Middleware
|
|
|
// Middleware
|
|
|
|
|
|
|
|
|
app.use(express.favicon()); |
|
|
app.use(bodyParser.json()); |
|
|
app.use(express.logger('dev')); |
|
|
|
|
|
app.use(express.bodyParser()); |
|
|
|
|
|
app.use(app.router); |
|
|
|
|
|
app.use(express.static(__dirname + '/public')); |
|
|
app.use(express.static(__dirname + '/public')); |
|
|
app.use(express.errorHandler()); |
|
|
|
|
|
|
|
|
|
|
|
// Routes
|
|
|
// Routes
|
|
|
|
|
|
|
|
|