UNPKG

dojo

Version:

Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.

17 lines (15 loc) 340 B
define([], function () { return function (request) { var response = {}; if (request.query.query === 'dojotoolkit') { response.url = 'dojotoolkit.org/'; } return { status: 200, headers: { 'Content-Type': 'application/json' }, body: [ request.query.callback + '(' + JSON.stringify(response) + ');' ] }; }; });