PHP Classes

File: routes/web.php

Recommend this page to a friend!
  Classes of Zacchaeus Bolaji  >  NatterBase PHP Get Country API  >  routes/web.php  >  Download  
File: routes/web.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: NatterBase PHP Get Country API
API to get information about countries
Author: By
Last change:
Date: 1 year ago
Size: 835 bytes
 

Contents

Class file image Download
<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::post('signup', 'UserController@register');
Route::post('login', 'UserController@authenticate');
Route::group(['middleware' => ['auth']], function() {
   
Route::get('countries', 'CountryController@index');
   
Route::post('countries', 'CountryController@create');
   
Route::put('countries/{id}', 'CountryController@update');
   
Route::delete('countries/{id}', 'CountryController@delete');
   
Route::get('activities', 'ActivityController@index');
});

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