clrghouz/routes/api.php

22 lines
683 B
PHP
Raw Permalink Normal View History

2018-11-15 10:45:49 +00:00
<?php
use Illuminate\Support\Facades\Route;
2021-08-09 13:35:22 +00:00
2024-06-09 23:18:59 +00:00
use App\Http\Controllers\{DomainController,MatrixController};
2018-11-15 10:45:49 +00: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!
|
*/
2024-06-09 23:18:59 +00:00
Route::get('/domain/daily',[DomainController::class,'api_daily_stats']);
Route::any('matrix/{item}',[MatrixController::class,'webhook'])
->where('item', '.*')
->middleware('auth:matrix');