We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06bd158 commit cbebd4cCopy full SHA for cbebd4c
1 file changed
README.md
@@ -46,6 +46,14 @@ use PhpWeekend\App;
46
Router::get('/', function() {
47
App::send_json(array('data' => 'Hello, World!'));
48
});
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
57
```
58
59
## Usage
0 commit comments