PHP Classes

File: routes/web.php

Recommend this page to a friend!
  Classes of Thiago Przyczynski   PHP Busca CEP Correios   routes/web.php   Download  
File: routes/web.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Busca CEP Correios
API to search for Brazilian zip codes
Author: By
Last change:
Date: 4 years ago
Size: 872 bytes


Class file image Download

| Application Routes
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
$app->get('/', function () use ($app) {
'Muito obrigado por utilizar este software. Para mais informações acesse: <a href=""></a>';
$app->group(['prefix' => 'api/v1'], function($app) {
$app->get('/', 'CepController@index');
$app->get('cidade/{cep}', 'CepController@cidade');
$app->get('estado/{cep}', 'CepController@estado');
$app->get('cep/{cep}', 'CepController@cep');