Skip to content

Commit

Permalink
Corrected programmatic API example
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Dec 4, 2017
1 parent e61ff51 commit 2ad16e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ This endpoint was specifically crafted for the Windows platform (called "win32"

Since the [Windows version](https://github.com/Squirrel/Squirrel.Windows) of Squirrel (the software that powers auto updates inside [Electron](https://electron.atom.io)) requires access to a file named "RELEASES" when checking for updates, this endpoint will respond with a cached version of the file that contains a download link to a `.nupkg` file (the application update).

## Programmatic usage
## Programmatic Usage

You can use Hazel programmatically to extend it's functionality.
You can add Hazel to an existing HTTP server, if you want. For example, this will allow you to implement custom analytics on certain paths.

```
const hazel = require('hazel')
const hazel = require('@zeit/hazel')
http.createServer((req, res) => {
hazel(req, res)
hazel(req, res)
})
```

Expand Down

0 comments on commit 2ad16e3

Please sign in to comment.