api.php 856 B

12345678910111213141516171819202122232425
  1. <?php
  2. use Illuminate\Http\Request;
  3. use Illuminate\Support\Facades\Route;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | API Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register API routes for your application. These
  10. | routes are loaded by the RouteServiceProvider within a group which
  11. | is assigned the "api" middleware group. Enjoy building your API!
  12. |
  13. */
  14. Route::group([
  15. 'prefix' => 'library',
  16. ], function (\Illuminate\Routing\Router $router) {
  17. $router->get('/category', [\App\Http\Controllers\LibraryController::class, 'category']);
  18. $router->get('/book', [\App\Http\Controllers\LibraryController::class, 'book']);
  19. $router->get('/category/resource-type-maps', [\App\Http\Controllers\LibraryController::class, 'resourceTypeMaps']);
  20. });