| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /*$this->any('/login-window', function ($request, $response, $args) {
- global $locale;
-
- $response = $response->withJson([
- 'user' => [],
- 'status' => 'ok',
- 'languageList' => $locale->getLanguageStringList(),
- 'strings' => [
- 'appTitle' => $locale->config['settings']['app-title'],
- 'username' => _('Username'),
- 'password' => _('Password'),
- 'keep_connected' => _('Keep connected'),
- 'access_button' => _('Login')
- ],
- 'baseInfo' => $locale->getAppInfo()
- ]);
-
- return $response;
- });*/
-
-
-
-
-
- //Example: http://dev-ght.ttre.cloud/api/login/mainForm/dd=4&de=3
- /*Array
- (
- [dd] => 4
- [de] => 3
- )*/
-
- $this->any('/{controller}/{action}[/{params:.*}]', function ($request, $response, $args) {
-
- $controller = $args['controller'];
- $action = $args['action'];
-
- require CONTROLLER_DIR.$controller.'Controller.php';
- $class = $controller.'Controller';
- $response = call_user_func(array(new $class(), $action), $args);
-
-
- return $response;
- });
|