Created
March 28, 2012 20:29
dave
This file contains hidden or 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
class Todos extends KinveyCollection | |
url: -> | |
url = "http://test.kinvey.com/appdata/#{kinvey_app_key}/todos" | |
// if there is a filter string | |
if @filterString | |
// build the regex query - queries are JSON objects | |
query = JSON.stringify( content: { $regex: @filterString } ) | |
// make sure we URI encode the query! | |
url += "?query=#{encodeURIComponent( query )}" | |
// Return the final result | |
url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment