File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 22/**
33 * JSONP Middleware Class for the Slim Framework
44 *
5- * Simple class to wrap the response of the application in an JSONP callback function.
6- * The class is triggered when a get parameter of callback is found
7- *
85 * @author Tom van Oorschot <[email protected] > 96 * @since 17-12-2012
7+ *
8+ * Simple class to wrap the response of the application in a JSONP callback function.
9+ * The class is triggered when a get parameter of callback is found
10+ *
11+ * Usage
12+ * ====
13+ *
14+ * $app = new \Slim\Slim();
15+ * $app->add(new \Slim\Extras\Middleware\JSONPMiddleware());
16+ *
1017 */
1118
19+ namespace Slim \Extras \Middleware ;
20+
1221class JSONPMiddleware extends \Slim \Middleware
1322{
1423 public function call ()
You can’t perform that action at this time.
0 commit comments