Skip to content

Instantly share code, notes, and snippets.

@lazymanc
Created December 16, 2011 10:23
Show Gist options
  • Save lazymanc/1485516 to your computer and use it in GitHub Desktop.
Save lazymanc/1485516 to your computer and use it in GitHub Desktop.
api routing
# artist api
artist:
url: /artist/*
param: { module: artist, action: methodSwitch }
# info api
info:
url: /info/*
param: { module: info, action: methodSwitch }
#review api
review:
url: /review/*
param: { module: review, action: methodSwitch }
# order api
order:
url: /order/*
param: { module: order, action: methodSwitch }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment