PHP Classes

File: routes/api.php

Recommend this page to a friend!
  Classes of uche  >  PHP News Website and API  >  routes/api.php  >  Download  
File: routes/api.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP News Website and API
Manage news articles for a site and access via API
Author: By
Last change:
Date: 10 months ago
Size: 590 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/


//articles
Route::get('articles', 'API\ArticleController@index'); //fetch all articles
Route::get('articles/{article}', 'API\ArticleController@show'); //get an article

For more information send a message to info at phpclasses dot org.