jcubic / gaiman

Gaiman: Text based game engine and programming language
https://gaiman.js.org
GNU General Public License v3.0
138 stars 11 forks source link

Add validators to get/post requests #71

Open jcubic opened 2 years ago

jcubic commented 2 years ago

example:

get "./script.php", lambda(data)
  if data.error then
    echo "<purple>" + data.error + "</purple>"
    raise data.error
  else
    return data.result
  end
end