Skip to content

Basic Routing

Stefan Segers edited this page Feb 15, 2021 · 1 revision

In the application folder you can find a file "routes.php". This is the place where you can register all web routes for your application.

There are two types of route methods: GET and POST

  • Router::get($uri, $callback);
  • Router::post($uri, $callback);

This means that GET and POST are the only HTTP methods that are supported.

Clone this wiki locally