2018-04-15 23:56:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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!
|
|
|
|
|
|
|
|
|
*/
|
2018-11-09 01:38:19 +00:00
|
|
|
Route::post('/users/{username}/inbox', 'FederationController@userInbox');
|
|
|
|
|
2018-11-09 05:46:24 +00:00
|
|
|
Route::group(['prefix' => 'api/v2'], function() {
|
|
|
|
Route::get('profile/{username}/status/{postid}', 'PublicApiController@status');
|
|
|
|
Route::get('comments/{username}/status/{postId}', 'PublicApiController@statusComments');
|
|
|
|
});
|