fengsp / pencil

A web application microframework for Rust
https://fengsp.github.io/pencil/
Other
869 stars 39 forks source link

Add resources #8

Open Anachron opened 8 years ago

Anachron commented 8 years ago

Basically a small wrapper around /xyz/resource/ that will handle UPDATE, GET, INDEX, DELETE events (and alike) and pass it to a ResourceTrait that you can overwrite.

fengsp commented 8 years ago

More details? I don't understand it quite well.

Anachron commented 8 years ago

I am sorry for the very late response. A resource is like a definition of an object, like user, book or profile. It then needs to have at least the routes to the view, edit and delete actions. Index would also list all possible objects depending on the resource type.