Sso integration, Simple Rainloop Api (#103)

Small fixes
This commit is contained in:
RainLoop Team 2014-04-14 20:07:33 +04:00
parent dde42c6190
commit e211899c7b
12 changed files with 191 additions and 18 deletions

View file

@ -38,7 +38,14 @@ if (!\defined('RAINLOOP_APP_ROOT_PATH'))
if (!$oException)
{
\RainLoop\Service::NewInstance()->Handle();
if (defined('APP_CALLER_AS_API') && APP_CALLER_AS_API)
{
\RainLoop\Api::Handle();
}
else
{
\RainLoop\Service::NewInstance()->Handle();
}
}
}
}