pixelfed/routes/api.php

17 lines
516 B
PHP
Raw Normal View History

2018-04-15 23:56:48 +00:00
<?php
use Illuminate\Http\Request;
2018-12-24 02:42:04 +00:00
Route::post('/users/{username}/inbox', 'FederationController@userInbox');
2019-09-14 01:53:58 +00:00
2019-09-21 03:25:02 +00:00
Route::group(['prefix' => 'api'], function() {
Route::group(['prefix' => 'v1'], function() {
Route::post('apps', 'Api\ApiV1Controller@apps');
Route::get('instance', 'Api\ApiV1Controller@instance');
2019-09-21 04:01:36 +00:00
Route::get('filters', 'Api\ApiV1Controller@filters');
Route::get('statuses/{id}', 'Api\ApiV1Controller@statusById');
Route::get('statuses/{id}/context', 'Api\ApiV1Controller@context');
2019-09-21 03:25:02 +00:00
});
});