Skip to content

Commit 0317a60

Browse files
committed
Adding Alfred workflow. Updating routes and CLI urls to be consistent with rest of URLs
1 parent 6d9cecc commit 0317a60

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

BulletNotes.alfredworkflow

8.4 KB
Binary file not shown.

imports/api/notes/server/routes.coffee

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ bodyParser = Npm.require( 'body-parser' )
33
Picker.middleware( bodyParser.json() )
44
Picker.middleware( bodyParser.urlencoded( { extended: false } ) )
55

6-
Picker.route '/notes/inbox', ( params, request, response, next ) ->
6+
Picker.route '/note/inbox', ( params, request, response, next ) ->
7+
console.log request.body
78
noteId = Meteor.call 'notes.inbox',
89
userId: request.body.userId
910
title: request.body.title

note.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
2-
NOTEID=$(curl -X POST -H "Content-Type:application/json" https://bulletnotes.io/notes/inbox --digest -s -d "{\"title\":\"$1\",\"body\":\"$2\",\"userId\":\"WuQ2ha7E4BRbERWyh\"}")
2+
NOTEID=$(curl -X POST -H "Content-Type:application/json" https://bulletnotes.io/note/inbox --digest -s -d "{\"title\":\"$1\",\"body\":\"$2\",\"userId\":\"USER_ID_HERE\"}")
33
echo "Note saved! Title: $1 Body: $2";
44
echo "View note: https://bulletnotes.io/note/$NOTEID"

0 commit comments

Comments
 (0)