Skip to content

Commit

Permalink
Trying apply and unblock
Browse files Browse the repository at this point in the history
  • Loading branch information
meyilmaz committed Jun 25, 2013
1 parent 73a047b commit 3d67a67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
revoltdc_hackathon20130622
revoltdc_hackathon20130622_continued
==========================

What I got done during the specified hackathon.
Expand Down
5 changes: 3 additions & 2 deletions client/Client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Meteor.methods
checkSunlight: (query) ->
return "Loading"


Meteor.Router.add
'/test':'somedata',
'/nice/:query': (query)->
Expand All @@ -15,9 +16,9 @@ Meteor.Router.add
)
return "nice"
'/capitol/:query': (query)->
Meteor.call("checkCapitolWords", query,
Meteor.apply("checkCapitolWords", {query},true,
(err,res)->
console.log("test")
console.log(err)
Session.set("result",res)
)
return "capitol"
Expand Down
3 changes: 1 addition & 2 deletions server/Server.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Meteor.Router.add
'/test':'somedata'

sunlight_api_key = "yourapikey"
sunlight_api_key = "myapikey"

Meteor.methods
checkSunlight: (query) ->
Expand All @@ -18,7 +18,6 @@ Meteor.methods
return resulting
false
checkCapitolWords: (query) ->
@unblock()
result = Meteor.http.call('GET',"http://congress.api.sunlightfoundation.com/legislators",
params:
"apikey": sunlight_api_key,
Expand Down

0 comments on commit 3d67a67

Please sign in to comment.