clrghouz/routes/api.php

22 lines
683 B
PHP
Raw Normal View History

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