ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilRestServer.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once './Services/WebServices/Rest/classes/class.ilRestFileStorage.php';
5 
11 class ilRestServer extends Slim\App
12 {
17  public function __construct($container = [])
18  {
19  parent::__construct($container);
20  }
21 
22 
26  public function init()
27  {
28  $callback_obj = new ilRestFileStorage();
29 
30  $this->get('/fileStorage', array($callback_obj,'getFile'));
31  $this->post('/fileStorage', array($callback_obj,'createFile'));
32 
33 
34  $callback_obj->deleteDeprecated();
35  }
36 }
$container
Definition: App.php:62
init()
Init server / add handlers.
post($pattern, $callable)
Add POST route.
Definition: App.php:154
__construct($container=[])
ilRestServer constructor.
Slim rest server.
File storage handling.