Created
June 3, 2018 23:17
-
-
Save stephenjude/977e538442a40dc617207347ff0f12c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$app->get('/', function () use ($app) { | |
return $app->version(); | |
}); | |
//product routes | |
$app->get('products', 'ProductsController@index'); | |
$app->get('products/{id}', 'ProductsController@show'); | |
$app->put('products/{id}', 'ProductsController@update'); | |
$app->post('products', 'ProductsController@store'); | |
$app->delete('products/{id}', 'ProductsController@destroy'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment