Skip to content

Commit

Permalink
Route API improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianKirmaier committed Dec 15, 2023
1 parent 90b0c42 commit f1090c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#### Changes
* Fixed parts of the `Route.when` api, which had unexpected argument types.
# removed ResponseUtils.redirect and replaced it with Response.redirect() and also added Response.fromNode()

### 0.2.7 (December 8, 2023)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
package one.jpro.platform.routing

trait Response
object Response {
def empty(): Response = null
def redirect(to: String): Response = Redirect(to)
def fromNode(node: javafx.scene.Node): Response = new Response {
RouteUtils.viewFromNode(node)
}
}

This file was deleted.

0 comments on commit f1090c5

Please sign in to comment.