This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
// kylegg 2024 | |
// | |
// Response is always text/plain for our API. | |
header('Content-Type: text/plain'); | |
// Generic function I wrote for validating url parameters in like 30 seconds, its not pretty but it works. | |
function getQueryParameter(string $name, Closure $cl): mixed |