Commit 03679cf1 authored by Nicolas Widart's avatar Nicolas Widart

Cleaning up the api controller

parent 69b3e023
...@@ -6,10 +6,6 @@ use Modules\Media\Services\FileService; ...@@ -6,10 +6,6 @@ use Modules\Media\Services\FileService;
class MediaController class MediaController
{ {
/**
* @var FileRepository
*/
private $file;
/** /**
* @var FileService * @var FileService
*/ */
...@@ -20,26 +16,6 @@ class MediaController ...@@ -20,26 +16,6 @@ class MediaController
$this->fileService = $fileService; $this->fileService = $fileService;
} }
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
return \View::make('collection.index');
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
return \View::make('collection.create');
}
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
...@@ -52,48 +28,4 @@ class MediaController ...@@ -52,48 +28,4 @@ class MediaController
return Response::json($savedFile->toArray()); return Response::json($savedFile->toArray());
} }
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
return \View::make('collection.show');
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
return \View::make('collection.edit');
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}
} }
...@@ -4,13 +4,8 @@ $router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'Larav ...@@ -4,13 +4,8 @@ $router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'Larav
{ {
$router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Media\Http\Controllers'], function($router) $router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Media\Http\Controllers'], function($router)
{ {
$router->resource('media', 'Admin\MediaController', ['except' => ['show'], 'names' => [ $router->resource('media', 'Admin\MediaController', ['only' => ['store'], 'names' => [
'index' => 'dashboard.media.index',
'create' => 'dashboard.media.create',
'store' => 'dashboard.media.store', 'store' => 'dashboard.media.store',
'edit' => 'dashboard.media.edit',
'update' => 'dashboard.media.update',
'destroy' => 'dashboard.media.destroy',
]]); ]]);
}); });
}); });
......
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