PHP Classes
elePHPant
Icontem

File: routes/web.php

Recommend this page to a friend!
  Classes of Renato De Oliveira Lucena  >  PHP Pokemon Script  >  routes/web.php  >  Download  
File: routes/web.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Pokemon Script
Provides an API to manage a database of Pokemons
Author: By
Last change:
Date: 1 year ago
Size: 860 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::get('/pokemon', function(){
    return
view('pokemon');
});

Route::get('/', function () {
    return
view('welcome');
});

Route::prefix("pokemon")->group(function(){
   
Route::get("index","PokemonController@getIndex");
   
Route::get("edit/[:id]","PokemonController@update");

   
Route::post("salvar","PokemonController@post");
   
Route::put("atualizar","PokemonController@put");
   
Route::delete("deletar","PokemonController@delete");
});

Auth::routes();