mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 11:12:09 -05:00
11 lines
518 B
PHP
11 lines
518 B
PHP
<?php
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Listing\Http\Controllers\ListingController;
|
|
|
|
Route::middleware('web')->prefix('listings')->name('listings.')->group(function () {
|
|
Route::get('/', [ListingController::class, 'index'])->name('index');
|
|
Route::get('/create', [ListingController::class, 'create'])->name('create');
|
|
Route::post('/', [ListingController::class, 'store'])->name('store')->middleware('auth');
|
|
Route::get('/{listing}', [ListingController::class, 'show'])->name('show');
|
|
});
|