Last active
December 15, 2015 21:59
-
-
Save hhariri/5329836 to your computer and use it in GitHub Desktop.
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
resource public fun CustomerResources() { | |
"/customer" get { | |
} | |
"/customer" post { | |
} | |
} | |
resource public fun EmployeeResorces() { | |
"/employee" get { | |
} | |
"/employee" post { | |
} | |
} | |
// if you want to separate even further: | |
resource public fun CustomerGetResource() { | |
"/customer" get { .... } | |
} | |
resource public fun CustomerPostResource() { | |
"/customer" post { .... } | |
} | |
// if you want to group by objects... | |
public object CustomerResources { | |
resource public fun Handlers() { | |
"/customer" get { .... } | |
"/customer" post { .... } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment