Skip to content

Commit

Permalink
Changed the types in the Routing. In most cases these are still compa…
Browse files Browse the repository at this point in the history
…tible because utility methods are used.

Before:
Route: Request => FXFuture[Response]
Now:
Route: Request => Response
Response: FXFuture[ResponseResult]

This made the API more easy to use by hiding complexity which is only needed in rare cases.
  • Loading branch information
FlorianKirmaier committed Dec 15, 2023
1 parent cebaa3d commit 88eeae9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import one.jpro.platform.routing.sessionmanager.SessionManager
import simplefx.all
import simplefx.all._

abstract class View extends Response { THIS =>
object View {
def fromNode(node: javafx.scene.Node): View = RouteUtils.viewFromNode(node)
}
abstract class View extends ResponseResult { THIS =>
def title: String
def description: String
var url: String = null
Expand Down

0 comments on commit 88eeae9

Please sign in to comment.