ServerController.php 444 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Controllers;
  3. use Silex\Application;
  4. use Symfony\Component\HttpFoundation\Response;
  5. class ServerController {
  6. const BACKBONE = '/client/index.html';
  7. public function index(Application $app) {
  8. return $app->redirect(self::BACKBONE);
  9. }
  10. public function server(Application $app) {
  11. return $this->index($app);
  12. }
  13. public function catchAll($url) {
  14. return new Response('Nothing to do', Response::HTTP_OK);
  15. }
  16. }