From 4bd4740a86de2a176fa36c1cb361831f7cc5911f Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 11 Dec 2019 17:42:32 +0100 Subject: [PATCH] expand readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c94bc0d..4e9d7f3 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ const requestor = require('requestor'); const express = require('express'); const app = express(); -requestor(app, 'api', {foo: 'bar'}); +requestor(app, 'api', {opts: {foo: 'bar'}}); app.listen(3000); ``` @@ -64,7 +64,7 @@ optionally, you can set a subdirectory for all requests ```js //... -requestor(app, 'api', {foo: 'bar'}, 'subdir'); +requestor(app, 'api', {subdir: 'subdir'}); // requests that before responded to /foo/bar/ will now respond to /subdir/foo/bar/ ```