Comparar commits
3 Commits
| Autor | SHA1 | Data | |
|---|---|---|---|
| 52353da08b | |||
| dc56b9b603 | |||
| 1446135545 |
@@ -1,4 +1,9 @@
|
||||
|
||||
1.0.2 / 2011-01-10
|
||||
==================
|
||||
|
||||
* Removed nested require, using `connect.router`
|
||||
|
||||
1.0.1 / 2010-12-29
|
||||
==================
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ var fs = require('fs')
|
||||
* Framework version.
|
||||
*/
|
||||
|
||||
var version = '1.0.1';
|
||||
var version = '1.0.2';
|
||||
|
||||
/**
|
||||
* stdin stream.
|
||||
|
||||
+15
-13
@@ -36,19 +36,21 @@ Note the use of _app.router_, which can (optionally) be used to mount the applic
|
||||
otherwise the first call to _app.{get,put,del,post}()_ will mount the routes.
|
||||
|
||||
app.configure(function(){
|
||||
app.use(express.methodOverride());
|
||||
app.use(express.bodyDecoder());
|
||||
app.use(app.router);
|
||||
app.use(express.staticProvider(__dirname + '/public'));
|
||||
});
|
||||
|
||||
app.configure('development', function(){
|
||||
app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
|
||||
});
|
||||
|
||||
app.configure('production', function(){
|
||||
app.use(express.errorHandler());
|
||||
});
|
||||
app.use(express.methodOverride());
|
||||
app.use(express.bodyDecoder());
|
||||
app.use(app.router);
|
||||
});
|
||||
|
||||
app.configure('development', function(){
|
||||
app.use(express.staticProvider(__dirname + '/public'));
|
||||
app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
|
||||
});
|
||||
|
||||
app.configure('production', function(){
|
||||
var oneYear = 31557600000;
|
||||
app.use(express.staticProvider({ root: __dirname + '/public', maxAge: oneYear }));
|
||||
app.use(express.errorHandler());
|
||||
});
|
||||
|
||||
For internal and arbitrary settings Express provides the _set(key[, val])_, _enable(key)_, _disable(key)_ methods:
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ var exports = module.exports = require('connect').middleware;
|
||||
* Framework version.
|
||||
*/
|
||||
|
||||
exports.version = '1.0.1';
|
||||
exports.version = '1.0.2';
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
|
||||
@@ -14,7 +14,7 @@ var url = require('url')
|
||||
, connect = require('connect')
|
||||
, utils = connect.utils
|
||||
, queryString = require('querystring')
|
||||
, router = require('connect/middleware/router');
|
||||
, router = require('connect').router;
|
||||
|
||||
/**
|
||||
* Initialize a new `Server` with optional `middleware`.
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "express",
|
||||
"description": "Sinatra inspired web development framework",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
||||
"contributors": [
|
||||
{ "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" },
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário