Last active
December 15, 2015 09:59
-
-
Save ikesyo/5242697 to your computer and use it in GitHub Desktop.
Parse Cloud Code: Make role
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
| // Use Parse.Cloud.define to define as many cloud functions as you want. | |
| // For example: | |
| Parse.Cloud.define("hello", function(request, response) { | |
| var acl = new Parse.ACL(); | |
| var role = new Parse.Role("testRole", acl); | |
| role.save(); | |
| response.success("Hello world!"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
