PHP Classes

File: routes/api.php

Recommend this page to a friend!
  Classes of Busari Ridwan   Matrix Multiplication   routes/api.php   Download  
File: routes/api.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Matrix Multiplication
Provide matrix multiplication as a Web service
Author: By
Last change:
Date: 1 month ago
Size: 813 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Http\Request;
use
Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| 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::group(['namespace' => 'Api'], function () {
   
Route::group(['prefix' => 'auth'], function () {
       
Route::post('/login', 'AuthController@login');
       
Route::get('/logout', 'AuthController@logout');
    });
   
Route::get('/me', 'MeController@me');
   
Route::post('/matrix-multiplications', 'MatrixController@matrixMultiplication');
});