Skip to content

Commit cbebd4c

Browse files
committed
Docs: README.md updated
1 parent 06bd158 commit cbebd4c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ use PhpWeekend\App;
4646
Router::get('/', function() {
4747
App::send_json(array('data' => 'Hello, World!'));
4848
});
49+
50+
Router::get('/simple', function() {
51+
App::send_response('This is the content.', 200, 'text/html');
52+
});
53+
54+
Router::get('/get_pdf', function() {
55+
App::send_file(__DIR__ . '/static/my_file.pdf');
56+
});
4957
```
5058

5159
## Usage

0 commit comments

Comments
 (0)