Accessing the Laravel API route 5.7

0

I'm learning to use Laravel as API Rest and I've been testing postman on a route that returns a string, but I can not find an error. Return not found.

Address: link

<?php

use Illuminate\Http\Request;


Route::group(['prefix' => 'api'], function()
{
    Route::group(['prefix' => 'ponto'], function()
    {
        Route::get('/', function()
        {
            return 'Teste';
        });
    });
});

Resolution: I just did not know it was default to put / api to Rest.

    
asked by anonymous 23.10.2018 / 23:02

0 answers