Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $app->get('user/{id}', function($id) use ($app) {
- return response()
- ->json([
- "name" => 'Billy',
- 'age' => '42'
- ])
- ->header('Access-Control-Allow-Origin', '*');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement