Routes

Routes connect a URL Request to a target file or callable. Routes can be static patterns (/blog/some-post/) or dynamic (/blog/{postname}/). Routes can point to .php scripts that are executed on request or to static files like .css, .js, .png, .pdf, or others. Routes allow GET requests by default, and can also allow POST requests.

If a route supports both GET and POST, it will be under each section below.

POST Routes

  • /test-post/ (callable: Anonymous Function defined in: /test/Server/bootstrap.php on line 48), (package: none)
  • /test-get-post/ (callable: Anonymous Function defined in: /test/Server/bootstrap.php on line 50), (package: none)

GET Routes

  • /test-get-post/ (callable: Anonymous Function defined in: /test/Server/bootstrap.php on line 50), (package: none)
  • /doc-dupes/ multiple targets:
    • (file: /test/Server/public/add-resource-file.php), (package: none)
    • (file: /test/Server/public/add-css-and-js.php), (package: none)
    • (file: /test/Server/public/nest-res.php), (package: none)
  • /test/ multiple targets:
    • (file: /test/Server/public/test.php), (package: Lia\Package\Server, site)
    • (file: /test/Server/public/test/index.php), (package: Lia\Package\Server, site)
  • /nest-res/ (file: /test/Server/public/nest-res.php), (package: Lia\Package\Server, site)
  • /sample.css (file: /test/Server/public/sample.css), (package: Lia\Package\Server, site)
  • /dynamic/?/ (pattern: /dynamic/{param}/), (file: /test/Server/public/dynamic/{param}.php), (package: Lia\Package\Server, site)
  • /generic-error/ (file: /test/Server/public/generic-error.php), (package: Lia\Package\Server, site)
  • /add-css-and-js/ (file: /test/Server/public/add-css-and-js.php), (package: Lia\Package\Server, site)
  • /add-resource-file/ (file: /test/Server/public/add-resource-file.php), (package: Lia\Package\Server, site)
  • /test/something/ (file: /test/Server/public/test/something.php), (package: Lia\Package\Server, site)
  • / (file: /test/Server/public/index.php), (package: Lia\Package\Server, site)