- Timestamp:
- Aug 24, 2015, 10:01:27 PM (11 years ago)
- Branches:
- master
- Children:
- 8f38d1e
- Parents:
- 1c92d58
- Location:
- src/webservice
- Files:
-
- 5 added
- 3 edited
-
config/config.php.in (modified) (2 diffs)
-
htaccess.in (modified) (1 diff)
-
htdocs/inc/DatabaseHandler.php (added)
-
htdocs/index.php (modified) (2 diffs)
-
htdocs/resources/css/webservice.css (added)
-
htdocs/resources/icons/dialog-cancel.png (added)
-
htdocs/resources/icons/dialog-ok-apply.png (added)
-
htdocs/setup.php (added)
Legend:
- Unmodified
- Added
- Removed
-
src/webservice/config/config.php.in
r1c92d58 r92c9c7c 23 23 "webserviceApiVersion" => "@WEBSERVICE_API_VERSION@", 24 24 "mode" => "@WEBSERVICE_MODE@", 25 "webserviceBaseUrl" => "http://localhost@WEBSERVICE_BASE_URL@/", 25 26 ]; 27 28 /////////////////////////// 29 // 30 // DO NOT MODIFY THIS FILE BELOW THIS LINE 31 // 32 /////////////////////////// 33 34 $config["dataDirectory"] = "data"; 35 26 36 27 37 function getConfig($key){ … … 40 50 41 51 set_include_path(get_include_path() . PATH_SEPARATOR . "../vendor/"); 42 require 'vendor/autoload.php';52 require("../vendor/autoload.php"); 43 53 44 54 ?> -
src/webservice/htaccess.in
r1c92d58 r92c9c7c 22 22 # Requires AllowOverride All directive in your apache config 23 23 RewriteEngine On 24 RewriteCond %{REQUEST_FILENAME} !-f 25 RewriteRule ^@WEBSERVICE_BASE_URL@ @WEBSERVICE_BASE_URL@/index.php [QSA,L] 24 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f 25 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d 26 RewriteRule ^@WEBSERVICE_BASE_URL@/v@WEBSERVICE_API_VERSION@ @WEBSERVICE_BASE_URL@/index.php [QSA,L] -
src/webservice/htdocs/index.php
r1c92d58 r92c9c7c 21 21 include("config/config.php"); 22 22 23 /** 24 * @brief Handles the stations (list) REST requests 25 */ 23 26 function stations(){ 24 27 $stations = Array(); … … 62 65 63 66 // $app->notFound(function () use ($app) { 64 // $app->render( '404.html');67 // $app->render(getConfig("webserviceBaseUrl")+ "404.html"); 65 68 // }); 66 69
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/siweather/chrome/site/your_project_logo.png)