1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 21:52:35 +01:00
invoiceninja/app/Http/Controllers/DocumentAPIController.php

41 lines
618 B
PHP
Raw Normal View History

2016-05-21 10:44:53 +02:00
<?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
}
}