connect-slashes
===============

Trailing slash redirect middleware for Connect. Useful for creating canonical urls in your Node.js applications.

## Installation

```
$ npm install connect-slashes
```

## Usage

```javascript
var connect = require("connect")
  , slashes = require("connect-slashes");

connect()
  .use(connect.logger())
  .use(connect.static())
  .use(slashes())
  .listen(3000); 
```

Alternatively, you can pass `false` as the only argument to `.slashes()` in order to remove trailing slashes instead of appending them:

```javascript
.use(slashes(false));
``` 

## Notes

1. Only GET requests will be redirected (to avoid losing POST/PUT data)
2. This middleware will append or removes a trailing slash to all request urls. This includes filenames (/app.css => /app.css/), so it may break your static files. Make sure to `.use()` this middleware only after the `connect.static()` middleware. 
connect-slashes
===============

Trailing slash redirect middleware for Connect. Useful for creating canonical urls in your Node.js applications.

## Installation

```
$ npm install connect-slashes
```

## Usage

```javascript
var connect = require("connect")
  , slashes = require("connect-slashes");

connect()
  .use(connect.logger())
  .use(connect.static())
  .use(slashes())
  .listen(3000); 
```

Alternatively, you can pass `false` as the only argument to `.slashes()` in order to remove trailing slashes instead of appending them:

```javascript
.use(slashes(false));
``` 

## Notes

1. Only GET requests will be redirected (to avoid losing POST/PUT data)
2. This middleware will append or removes a trailing slash to all request urls. This includes filenames (/app.css => /app.css/), so it may break your static files. Make sure to `.use()` this middleware only after the `connect.static()` middleware. 

## LICENSE

MIT

Add MIT License note to readme
Add MIT License note to readme