-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regular expressions and request methods
Added 5 basic HTTP request methods: * `get(pattern, callback)` * `post(pattern, callback)` * `put(pattern, callback)` * `delete(pattern, callback)` * `head(pattern, callback)` You can add additional methods by calling `server.extend('METHOD');`. After that you can call `server.method(pattern, callback);`.
- Loading branch information
Showing
2 changed files
with
65 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"author": "Paul Vorbach <[email protected]> (https://vorb.de/)", | ||
"name": "api", | ||
"description": "A server for RESTful APIs", | ||
"tags": [ "REST", "API", "server" ], | ||
"version": "0.0.0", | ||
"description": "A server framework for easy routing", | ||
"tags": [ "server", "middleware", "router" ], | ||
"version": "0.1.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/pvorb/node-api.git" | ||
}, | ||
"bugs": { | ||
"web": "https://github.com/pvorb/node-api/issues" | ||
"url": "https://github.com/pvorb/node-api/issues" | ||
}, | ||
"main": "api.js", | ||
"engines": { | ||
|