hypothetical/routes/api.php

32 lines
977 B
PHP
Raw Normal View History

2016-08-19 16:38:49 -04:00
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
2016-08-19 16:38:49 -04:00
/*
|--------------------------------------------------------------------------
2024-03-19 17:11:58 -04:00
| Authentication
2016-08-19 16:38:49 -04:00
|--------------------------------------------------------------------------
*/
2024-03-19 17:11:58 -04:00
Route::get('/user', function (Request $request) {
2016-08-19 16:38:49 -04:00
return $request->user();
2024-03-19 17:11:58 -04:00
})->middleware('auth:sanctum');
/*
|--------------------------------------------------------------------------
| Get Routes
|--------------------------------------------------------------------------
*/
2022-05-23 21:29:51 -04:00
Route::get('/blog-entries', 'App\Http\Controllers\ApiController@getBlogEntries');
/*
|--------------------------------------------------------------------------
| Post Routes
|--------------------------------------------------------------------------
*/
2022-05-23 21:29:51 -04:00
Route::post('/contact-submit', 'App\Http\Controllers\ApiController@postContactSubmit');
Route::post('/subscription-submit', 'App\Http\Controllers\ApiController@postSubscriptionSubmit');