Commit 175042a5 authored by Waterfox's avatar Waterfox
Browse files

Create base of api

parent aee39765
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class DataBoatController extends Controller
{
    public static function fetch()
    {
        
    }
}
+2 −0
Original line number Diff line number Diff line
@@ -22,3 +22,5 @@
});

Route::post('/palanques', [App\Http\Controllers\ManualPalanqueeController::class, 'store']);

Route::get('/boat', [App\Http\Controllers\DataBoatController::class, 'fetch']);
+5 −0
Original line number Diff line number Diff line
@@ -237,6 +237,11 @@
    ->post('manage/members/roles', [ManageAdherentController::class, 'update'])
    ->name('updateMembersRole');

/** Unsuscribe the user from a diving session
 */
Route::middleware('App\Http\Middleware\RightChecker')
->get('/unsubscribe/{ds_code}', [DivingUnsubscribeController::class, 'index']);

Route::middleware('App\Http\Middleware\rightChecker')
    ->get('dive/{id}', [DivesList::class, 'show'])
    ->name('dives_show');