1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 08:14:10 +00:00
pixelfed/routes/api.php

16 lines
460 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('statuses/{id}', 'Api\ApiV1Controller@statusById');
Route::get('statuses/{id}/context', 'Api\ApiV1Controller@context');
2019-09-21 03:25:02 +00:00
});
});