Commit e026e189 authored by Nicolas Widart's avatar Nicolas Widart

Changing api resource name

parent bc42af15
......@@ -22,5 +22,5 @@ $router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'Larav
$router->get('admin/grid-files', 'Modules\Media\Http\Controllers\Admin\MediaController@gridFiles');
$router->group(['prefix' => 'api', 'namespace' => 'Modules\Media\Http\Controllers'], function (Router $router) {
$router->resource('media', 'Api\MediaController', ['only' => ['store']]);
$router->resource('file', 'Api\MediaController', ['only' => ['store']]);
});
......@@ -23,7 +23,7 @@
@section('content')
<div class="row col-md-12">
<form action="{{ URL::route('api.media.store')}}" method="POST" class="dropzone">
<form action="{{ URL::route('api.file.store')}}" method="POST" class="dropzone">
{!! Form::token() !!}
</form>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment