JSFiddle - React, Tailwind, and code Playground

by bluey

JavaScript

$hash = 'pass'; //This is the HASH that secures the usage of this API

if ($_POST('hash')) {
    if ($_POST('hash') == $hash) {
        echo "Request Successful";
    }
    else {
        echo 'Request Invalid';
    }
} else {
    echo "derp";
}