2016-08-19 16:38:49 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Http\Request;
|
2020-04-23 22:17:13 -04:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2016-08-19 16:38:49 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| API Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| is assigned the "api" middleware group. Enjoy building your API!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2022-05-23 21:01:33 -04:00
|
|
|
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
2016-08-19 16:38:49 -04:00
|
|
|
return $request->user();
|
2017-01-26 19:17:37 -05:00
|
|
|
});
|
2017-01-30 21:00:05 -05:00
|
|
|
|
2018-04-26 20:26:18 -04:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Get Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2022-05-23 21:29:51 -04:00
|
|
|
Route::get('/blog-entries', 'App\Http\Controllers\ApiController@getBlogEntries');
|
2018-04-26 20:26:18 -04:00
|
|
|
|
2017-01-30 21:00:05 -05:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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');
|