Skip to content

Commit 1173c66

Browse files
committed
updating snippet
1 parent f3c17a1 commit 1173c66

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ A tiny API framework written in PHP for quick project prototypes.
44

55
# Getting Started
66

7-
'''
8-
<?php
9-
7+
```php
108
require_once __DIR__ . '/vendor/autoload.php';
119

1210
$api = new nano\Server();
1311

12+
# serve text from root
1413
$api->get('/', function () {
1514
echo "Hello, World!";
1615
})
1716

18-
$api.run();
19-
'''
17+
$api->run();
18+
```

0 commit comments

Comments
 (0)