mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-13 13:03:41 +02:00
19 lines
No EOL
396 B
PHP
19 lines
No EOL
396 B
PHP
<?php
|
|
|
|
use Reflect\{Response, Path};
|
|
|
|
use VLW\API\API;
|
|
use VLW\Database\Models\Coffee\Coffee;
|
|
|
|
require_once Path::root("src/API/API.php");
|
|
require_once Path::root("src/Database/Models/Coffee/Coffee.php");
|
|
|
|
final class GET_Coffee extends API {
|
|
public function __construct() {
|
|
parent::__construct();
|
|
}
|
|
|
|
public function main(): Response {
|
|
return new Response(Coffee::all());
|
|
}
|
|
} |