Last active
June 11, 2018 14:51
-
-
Save juancho088/b4b73c67500b1357921f5f85cae1b2ea to your computer and use it in GitHub Desktop.
Route file for the RequestDispatcher
This file contains 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
routes: | |
# ========================= | |
# Movies Microservice | |
# ========================= | |
- regex: '^/movie(/*+)?$' | |
cls: com.myblockbuster.movies.controllers.MovieController | |
func: movie | |
# ========================= | |
# User Microservice | |
# ========================= | |
- regex: '^/login(/)?$' | |
cls: com.myblockbuster.users.controllers.UserController | |
func: login | |
- regex: '^/logout(/)?$' | |
cls: com.myblockbuster.users.controllers.UserController | |
func: logout | |
- regex: '^/signup(/)?$' | |
cls: com.myblockbuster.users.controllers.UserController | |
func: signup | |
# ========================= | |
# Geolocation Microservice | |
# ========================= | |
- regex: '^/location/country(/*+)?$' | |
cls: com.myblockbuster.geolocation.controllers.LocationController | |
func: country | |
- regex: '^/location/region(/*+)?$' | |
cls: com.myblockbuster.geolocation.controllers.LocationController | |
func: region | |
- regex: '^/location/city(/*+)?$' | |
cls: com.myblockbuster.geolocation.controllers.LocationController | |
func: region |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment