Declare media endpoint to micropub query

This commit is contained in:
Jonny Barnes 2017-03-10 14:42:00 +00:00
parent 56594facc4
commit 68bfd12f93

View file

@ -204,10 +204,10 @@ class MicropubController extends Controller
]);
}
//nope, how about a config query?
//this should have a media endpoint as well at some point
if ($request->input('q') == 'config') {
return response()->json([
'syndicate-to' => config('syndication.targets'),
'media-endpoint' => route('media-endpoint'),
]);
}