A BaseController trait
Provides implicits for String and spray.
Provides implicits for String and spray.routing.PathMatcher
get0[Controller]("index" ~> "my_index_method") get0[Controller](("show" / IntNumer) ~> "my_show_method")
Base trait, which add form to model serialization
Contain a route helpers
Trait contain http methods realisation
Trait, which contain methods for resourse implementation.
Trait, which contain methods for resourse implementation. With resourse method you might quick create routes for you controller. Also map form information onto Model.
resourse[Controller, Model]
transform to
pathPrefix("model") { //methods for controller.index // controller.show // ... }
Note: for new
method in controller use fresh
name.
Object for transformation String* into List
Object for transformation String* into List
exclude("index")
A BaseController trait
It a top hierarchy controllers. You can extend own controller with this trait.
Trait contain request method, which contatin information about current request. You might use in controller actions: