# NOT RUN {
# This route prints out all query key, value pairs
route(
'ALL',
'^$',
function(req) {
if (!is.null(query(req))) {
for (n in names(query(req))) {
print(paste(n, query(req)[[n]]))
}
} else {
print('The request did not contain a query')
}
response()
}
)
# }
Run the code above in your browser using DataLab