Fix on REST bootstrap for new endpoint: /<workspace>/oauth2/token and others like that

- problem with rest classes cache was found
  just because, now we have two url patterns
      1. /api/1.0/<workspace>/xxxxxxxx
      2. /<workspace>/oauth2/xxxxxxxx
  restler was generating two different cache class maps, for both patterns,
  so the first one request was overwriting to other.

** IT IS FIXED NOW
This commit is contained in:
eriknyk
2014-09-23 15:12:04 -04:00
parent 1d5896d187
commit 80083ffff4
2 changed files with 19 additions and 49 deletions

View File

@@ -56,6 +56,10 @@ try {
$app->run(Maveriks\WebApplication::SERVICE_API);
break;
case Maveriks\WebApplication::RUNNING_OAUTH2:
$app->run(Maveriks\WebApplication::SERVICE_OAUTH2);
break;
case Maveriks\WebApplication::RUNNING_INDEX:
$response = new Maveriks\Http\Response(file_get_contents("index.html"), 302);
$response->send();