Skip to content

3. Routing

kurosawa93 edited this page Dec 19, 2018 · 1 revision

to setup routing for all of ramenauth method in your app, you need to edit your apps api config which is located in config/api.php. the following are example of how to use the routing.

    Route::post('/login', 'UsersController@ramenLogin');
    Route::post('/check', 'UsersController@ramenCheck');
    Route::post('/register', 'UsersController@ramenRegister');

Those routing example will be enabling endpoint for ramenLogin, ramenCheck, ramenRegister to your app. and the endpoint will be like http://localhost:8000/api/login.

Clone this wiki locally