Skip to content

Instantly share code, notes, and snippets.

@juancho088
Last active June 11, 2018 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juancho088/b4b73c67500b1357921f5f85cae1b2ea to your computer and use it in GitHub Desktop.
Save juancho088/b4b73c67500b1357921f5f85cae1b2ea to your computer and use it in GitHub Desktop.
Route file for the RequestDispatcher
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