|
|
|
@ -244,15 +244,15 @@ There are seven routes which control basic HTTP operations for data:
|
|
|
|
|
|
|
|
|
|
|
|
https://gist.github.com/alexpchin/09939db6f81d654af06b
|
|
|
|
https://gist.github.com/alexpchin/09939db6f81d654af06b
|
|
|
|
|
|
|
|
|
|
|
|
| **URL** | **HTTP Verb** | **Action**|
|
|
|
|
| **URL** |**HTTP Verb**|**Action**|
|
|
|
|
|------------|-------------|------------|
|
|
|
|
|-----------------|-------------|----------|
|
|
|
|
| /photos/ | GET | index
|
|
|
|
| /photos/ | GET | index |
|
|
|
|
| /photos/new | GET | new
|
|
|
|
| /photos/new | GET | new |
|
|
|
|
| /photos | POST | create
|
|
|
|
| /photos | POST | create |
|
|
|
|
| /photos/:id | GET | show
|
|
|
|
| /photos/:id | GET | show |
|
|
|
|
| /photos/:id/edit | GET | edit
|
|
|
|
| /photos/:id/edit| GET | edit |
|
|
|
|
| /photos/:id | PATCH/PUT | update
|
|
|
|
| /photos/:id | PATCH/PUT | update |
|
|
|
|
| /photos/:id | DELETE | destroy
|
|
|
|
| /photos/:id | DELETE | destroy |
|
|
|
|
|
|
|
|
|
|
|
|
## Database
|
|
|
|
## Database
|
|
|
|
## Static
|
|
|
|
## Static
|
|
|
|
|