-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
21 lines (17 loc) · 724 Bytes
/
index.php
File metadata and controls
21 lines (17 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
require_once('rest' . DIRECTORY_SEPARATOR . 'Server.php');
/**
* Main file for examples. Instantiates the REST server implementation
* and registeres the services in the examples folder.
*
* To start creating you own web services, replace example services
* with you own services and follow the given structure.
*
* See more at https://github.com/veloek/php-rest
*/
$server = new Server("phpREST Example Web Services");
require_once('examples' . DIRECTORY_SEPARATOR . 'tasks.php');
require_once('examples' . DIRECTORY_SEPARATOR . 'upload_file.php');
require_once('examples' . DIRECTORY_SEPARATOR . 'crowded.php');
require_once('examples' . DIRECTORY_SEPARATOR . 'subroutes.php');
$server->handleRequest();