Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit fddca3a

Browse files
committed
Fix typo in endpoints.go
closes #394
1 parent 4ee77b6 commit fddca3a

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

api/endpoints.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func post(i *jsonAPIHandler, path string, w http.ResponseWriter, r *http.Request
2424
switch {
2525
case strings.HasPrefix(path, "/ob/listing"):
2626
i.POSTListing(w, r)
27-
case strings.HasPrefix(path, "/ob/purpose"):
27+
case strings.HasPrefix(path, "/ob/purchase"):
2828
i.POSTPurchase(w, r)
2929
case strings.HasPrefix(path, "/ob/follow"):
3030
i.POSTFollow(w, r)

npm-debug.log

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
0 info it worked if it ends with ok
2+
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
3+
2 info using [email protected]
4+
3 info using [email protected]
5+
4 verbose stack Error: missing script: start
6+
4 verbose stack at run (/usr/local/lib/node_modules/npm/lib/run-script.js:147:19)
7+
4 verbose stack at /usr/local/lib/node_modules/npm/lib/run-script.js:57:5
8+
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:345:5
9+
4 verbose stack at checkBinReferences_ (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:309:45)
10+
4 verbose stack at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:343:3)
11+
4 verbose stack at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:113:5)
12+
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:300:12
13+
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16
14+
4 verbose stack at tryToString (fs.js:449:3)
15+
4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:436:12)
16+
5 verbose cwd /home/chris/workspace/go/src/github.com/OpenBazaar/openbazaar-go
17+
6 error Linux 4.4.0-62-generic
18+
7 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
19+
8 error node v6.0.0
20+
9 error npm v3.8.6
21+
10 error missing script: start
22+
11 error If you need help, you may report this error at:
23+
11 error <https://github.com/npm/npm/issues>
24+
12 verbose exit [ 1, true ]

0 commit comments

Comments
 (0)