1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Http/Controllers/DocumentAPIController.php
2016-05-21 18:44:53 +10:00

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
}
}