Skip to content

Latest commit

 

History

History

navigator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Max Navigator

Example

val navigator = Navigator(initialRoute = Uri.parse("https://github.com")) {
    path("/:user") {
        route("") { request ->
            respondWithUserRepos()
        }
        route("/:repo") { request ->
            val repo = request.params.getValue("repo")
            respondWithUserRepo(repo)
        }       
    }
}

navigator.push(Uri.parse("https://github.com/pardom"))
navigator.push(Uri.parse("https://github.com/pardom/max"))
navigator.pop()