Last active
December 18, 2017 16:21
-
-
Save robhinds/334096c1e24008ec0194310d20ed51af 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
class UserRoutes { | |
this: UserServiceComponent => | |
val routes: Route = | |
getPath("users" / JavaUUID) { uuid => | |
respond(userService.getUser(GetUserRequest(None, Some(uuid)))) | |
} ~ | |
getPath("users" / Segment) { handle => | |
respond(userService.getUser(GetUserRequest(Some(handle), None))) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment