Browse Source

Added convenience method for sending JSON

master
Ben Ashton 2 years ago
parent
commit
d120749cde
  1. 5
      src/exprash.sh

5
src/exprash.sh

@ -206,6 +206,11 @@ function send() {
_sendRaw
}
function sendJson() {
setHeader 'Content-Type' 'application/json'
send
}
# $1: Path
function redirect() {
local path="$1"

Loading…
Cancel
Save