mirror of
https://github.com/sigmasternchen/useful-api.org
synced 2025-03-15 07:58:55 +00:00
feat: Add plain text renderer
This commit is contained in:
parent
9081b05a0e
commit
b2cbb63f47
2 changed files with 7 additions and 0 deletions
6
renderer/plain.php
Normal file
6
renderer/plain.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
return function ($data) {
|
||||
header("Content-Type: text/plain");
|
||||
echo $data;
|
||||
}
|
|
@ -3,4 +3,5 @@
|
|||
return [
|
||||
"JSON" => require(__DIR__ . "/JSON.php"),
|
||||
"DEBUG" => require(__DIR__ . "/debug.php"),
|
||||
"PLAIN" => require(__DIR__ . "/plain.php"),
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue