goje87 / G87

The G87 Framework
0 stars 0 forks source link

Have logic to pick up routes from routes.json #8

Closed goje87 closed 12 years ago

goje87 commented 12 years ago

routes.json can be present the in the APP_DOCUMENT_ROOT directory and have the following format.

{
  "patterns": {
    "server": "[a-zA-Z]+",
    "client": "[a-zA-Z0-9]+"
  },

  "routes": {
    "/servers/[server]": "\getServerData?server={1}"
  }
}
goje87 commented 12 years ago

This logic is implemented. Creating a new issue to have the file name as 'map.json' instead of 'routes.json'.