diff --git a/geoapi/api/api.php b/geoapi/api/api.php new file mode 100644 index 0000000..408e5d6 --- /dev/null +++ b/geoapi/api/api.php @@ -0,0 +1,10 @@ + diff --git a/geoapi/config/config.db.php b/geoapi/config/config.db.php new file mode 100644 index 0000000..3e558ca --- /dev/null +++ b/geoapi/config/config.db.php @@ -0,0 +1,7 @@ + diff --git a/geoapi/config/config.php b/geoapi/config/config.php new file mode 100644 index 0000000..3e558ca --- /dev/null +++ b/geoapi/config/config.php @@ -0,0 +1,7 @@ + diff --git a/geoapi/database/mysql.php b/geoapi/database/mysql.php new file mode 100644 index 0000000..3e558ca --- /dev/null +++ b/geoapi/database/mysql.php @@ -0,0 +1,7 @@ + diff --git a/geoapi/global.inc.php b/geoapi/global.inc.php new file mode 100644 index 0000000..16ce1c5 --- /dev/null +++ b/geoapi/global.inc.php @@ -0,0 +1,7 @@ + diff --git a/geoapi/index.php b/geoapi/index.php index 25022eb..349f774 100644 --- a/geoapi/index.php +++ b/geoapi/index.php @@ -1,14 +1,4 @@ get('/hello/:name', function ($name) { - echo "Hello, $name"; -}); - -$app->run(); + echo "Welcome to GeoApi"; ?> diff --git a/geoapi/nbproject/project.properties b/geoapi/nbproject/project.properties index 67f3fcd..9e1ed20 100644 --- a/geoapi/nbproject/project.properties +++ b/geoapi/nbproject/project.properties @@ -1,4 +1,6 @@ -include.path=${php.global.include.path} +ignore.path= +include.path=\ + ${php.global.include.path} php.version=PHP_54 source.encoding=UTF-8 src.dir=. diff --git a/geoapi/nbproject/project.xml b/geoapi/nbproject/project.xml index 60d3060..07c45ed 100644 --- a/geoapi/nbproject/project.xml +++ b/geoapi/nbproject/project.xml @@ -3,7 +3,7 @@ org.netbeans.modules.php.project - PhpProject1 + GeoApi diff --git a/geoapi/service/helloservice/index.php b/geoapi/service/helloservice/index.php new file mode 100644 index 0000000..42aaa2d --- /dev/null +++ b/geoapi/service/helloservice/index.php @@ -0,0 +1,13 @@ + +get('/hello/:name', function ($name) { + echo "Hello, $name"; +}); + +$app->run(); +?> diff --git a/geoapi/Slim/Environment.php b/geoapi/thirdparty/Slim/Environment.php similarity index 100% rename from geoapi/Slim/Environment.php rename to geoapi/thirdparty/Slim/Environment.php diff --git a/geoapi/Slim/Exception/Pass.php b/geoapi/thirdparty/Slim/Exception/Pass.php similarity index 100% rename from geoapi/Slim/Exception/Pass.php rename to geoapi/thirdparty/Slim/Exception/Pass.php diff --git a/geoapi/Slim/Exception/Stop.php b/geoapi/thirdparty/Slim/Exception/Stop.php similarity index 100% rename from geoapi/Slim/Exception/Stop.php rename to geoapi/thirdparty/Slim/Exception/Stop.php diff --git a/geoapi/Slim/Http/Headers.php b/geoapi/thirdparty/Slim/Http/Headers.php similarity index 100% rename from geoapi/Slim/Http/Headers.php rename to geoapi/thirdparty/Slim/Http/Headers.php diff --git a/geoapi/Slim/Http/Request.php b/geoapi/thirdparty/Slim/Http/Request.php similarity index 100% rename from geoapi/Slim/Http/Request.php rename to geoapi/thirdparty/Slim/Http/Request.php diff --git a/geoapi/Slim/Http/Response.php b/geoapi/thirdparty/Slim/Http/Response.php similarity index 100% rename from geoapi/Slim/Http/Response.php rename to geoapi/thirdparty/Slim/Http/Response.php diff --git a/geoapi/Slim/Http/Util.php b/geoapi/thirdparty/Slim/Http/Util.php similarity index 100% rename from geoapi/Slim/Http/Util.php rename to geoapi/thirdparty/Slim/Http/Util.php diff --git a/geoapi/Slim/Log.php b/geoapi/thirdparty/Slim/Log.php similarity index 100% rename from geoapi/Slim/Log.php rename to geoapi/thirdparty/Slim/Log.php diff --git a/geoapi/Slim/LogWriter.php b/geoapi/thirdparty/Slim/LogWriter.php similarity index 100% rename from geoapi/Slim/LogWriter.php rename to geoapi/thirdparty/Slim/LogWriter.php diff --git a/geoapi/Slim/Middleware.php b/geoapi/thirdparty/Slim/Middleware.php similarity index 100% rename from geoapi/Slim/Middleware.php rename to geoapi/thirdparty/Slim/Middleware.php diff --git a/geoapi/Slim/Middleware/ContentTypes.php b/geoapi/thirdparty/Slim/Middleware/ContentTypes.php similarity index 100% rename from geoapi/Slim/Middleware/ContentTypes.php rename to geoapi/thirdparty/Slim/Middleware/ContentTypes.php diff --git a/geoapi/Slim/Middleware/Flash.php b/geoapi/thirdparty/Slim/Middleware/Flash.php similarity index 100% rename from geoapi/Slim/Middleware/Flash.php rename to geoapi/thirdparty/Slim/Middleware/Flash.php diff --git a/geoapi/Slim/Middleware/MethodOverride.php b/geoapi/thirdparty/Slim/Middleware/MethodOverride.php similarity index 100% rename from geoapi/Slim/Middleware/MethodOverride.php rename to geoapi/thirdparty/Slim/Middleware/MethodOverride.php diff --git a/geoapi/Slim/Middleware/PrettyExceptions.php b/geoapi/thirdparty/Slim/Middleware/PrettyExceptions.php similarity index 100% rename from geoapi/Slim/Middleware/PrettyExceptions.php rename to geoapi/thirdparty/Slim/Middleware/PrettyExceptions.php diff --git a/geoapi/Slim/Middleware/SessionCookie.php b/geoapi/thirdparty/Slim/Middleware/SessionCookie.php similarity index 100% rename from geoapi/Slim/Middleware/SessionCookie.php rename to geoapi/thirdparty/Slim/Middleware/SessionCookie.php diff --git a/geoapi/Slim/Route.php b/geoapi/thirdparty/Slim/Route.php similarity index 100% rename from geoapi/Slim/Route.php rename to geoapi/thirdparty/Slim/Route.php diff --git a/geoapi/Slim/Router.php b/geoapi/thirdparty/Slim/Router.php similarity index 100% rename from geoapi/Slim/Router.php rename to geoapi/thirdparty/Slim/Router.php diff --git a/geoapi/Slim/Slim.php b/geoapi/thirdparty/Slim/Slim.php similarity index 100% rename from geoapi/Slim/Slim.php rename to geoapi/thirdparty/Slim/Slim.php diff --git a/geoapi/Slim/View.php b/geoapi/thirdparty/Slim/View.php similarity index 100% rename from geoapi/Slim/View.php rename to geoapi/thirdparty/Slim/View.php