PHP Classes

File: routes/api.php

Recommend this page to a friend!
  Classes of uche  >  PHP Chat API  >  routes/api.php  >  Download  
File: routes/api.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Chat API
Exchange chat messages between users using an API
Author: By
Last change:
Date: 1 year ago
Size: 709 bytes


Class file image Download

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!

Route::post('auth/login', 'AuthController@login');

Route::middleware(['check.token', 'auth:api'])->group(function () {
Route::post('messages', 'MessageController@store');
Route::get('messages', 'MessageController@index');

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