mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
41 lines
618 B
PHP
41 lines
618 B
PHP
<?php namespace App\Http\Controllers;
|
|
|
|
use App\Models\Document;
|
|
|
|
class DocumentAPIController extends BaseAPIController
|
|
{
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
//stub
|
|
}
|
|
|
|
public function show($publicId)
|
|
{
|
|
$document = Document::scope($publicId)->firstOrFail();
|
|
|
|
return DocumentController::getDownloadResponse($document);
|
|
}
|
|
|
|
public function store()
|
|
{
|
|
//stub
|
|
}
|
|
|
|
public function update()
|
|
{
|
|
//stub
|
|
}
|
|
|
|
public function destroy($publicId)
|
|
{
|
|
//stub
|
|
}
|
|
}
|