mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-23 11:16:05 +01:00
19 lines
644 B
PHP
19 lines
644 B
PHP
<?php
|
|
|
|
Route::api(['version' => 'v1', 'prefix' => 'api'], function() {
|
|
|
|
Route::get('components', 'ApiController@getComponents');
|
|
Route::get('components/{id}', 'ApiController@getComponent');
|
|
Route::get('components/{id}/incidents', 'ApiController@getComponentIncidents');
|
|
Route::get('incidents', 'ApiController@getIncidents');
|
|
Route::get('incidents/{id}', 'ApiController@getIncident');
|
|
|
|
Route::group(['protected' => true], function() {
|
|
Route::post('components', 'ApiController@postComponents');
|
|
Route::post('incidents', 'ApiController@postIncidents');
|
|
|
|
Route::put('incidents/{id}', 'ApiController@putIncident');
|
|
});
|
|
|
|
});
|