Skip to content

Instantly share code, notes, and snippets.

@Cerwyn
Created April 21, 2020 14:55
Show Gist options
  • Save Cerwyn/22725f97e9c35a8403b82601637f7aff to your computer and use it in GitHub Desktop.
Save Cerwyn/22725f97e9c35a8403b82601637f7aff to your computer and use it in GitHub Desktop.
generalizing-response
<?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!
|
*/
Route::resource('users', 'User\UserController', ['except'=>['create','update','edit']]);
Route::resource('login', 'User\UserLoginController',['only'=>['store']]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment