Updated flash
This commit is contained in:
@@ -31,8 +31,6 @@ when a request is received.
|
||||
|
||||
Since `RequestHandler` is an abstract class, you can leverage and chain HDI's to create cleaner and more maintainable route logic (more on that in the Handler Default Implementations guide).
|
||||
|
||||
```java[Example]
|
||||
|
||||
### 2. SimpleHandler
|
||||
|
||||
The `SimpleHandler` is a lightweight handler that allows you to define request handling logic in a single method using lambda notation.
|
||||
|
||||
@@ -13,7 +13,7 @@ To access the router instance, you can call the `route()` method on the `FlashSe
|
||||
|
||||
## Creating a Route
|
||||
|
||||
To create a route, you need to call the `route()` method on your server's instance (in this case for simplicity, on the InternalFlashServer)
|
||||
To create a route, you need to call the `route()` method on your server's instance
|
||||
and specify the base path of the route, followed by your handler class,
|
||||
|
||||
```java{6}
|
||||
|
||||
Reference in New Issue
Block a user