Skip to content

Instantly share code, notes, and snippets.

@adanselm
Created June 17, 2015 09:36
Show Gist options
  • Save adanselm/3bf4197879b3edefdf05 to your computer and use it in GitHub Desktop.
Save adanselm/3bf4197879b3edefdf05 to your computer and use it in GitHub Desktop.
The routes created by our router
api_user_path GET /api/users SbSso.Api.UserController.index/2
api_user_path GET /api/users/:id SbSso.Api.UserController.show/2
api_user_path POST /api/users SbSso.Api.UserController.create/2
api_user_path PATCH /api/users/:id SbSso.Api.UserController.update/2
PUT /api/users/:id SbSso.Api.UserController.update/2
api_user_path DELETE /api/users/:id SbSso.Api.UserController.destroy/2
api_user_subscription_path GET /api/users/:user_id/subs SbSso.Api.SubscriptionController.index/2
api_user_subscription_path GET /api/users/:user_id/subs/:id SbSso.Api.SubscriptionController.show/2
api_user_subscription_path POST /api/users/:user_id/subs SbSso.Api.SubscriptionController.create/2
api_product_path GET /api/products SbSso.Api.ProductController.index/2
api_product_path GET /api/products/:id SbSso.Api.ProductController.show/2
api_product_path POST /api/products SbSso.Api.ProductController.create/2
api_product_path PATCH /api/products/:id SbSso.Api.ProductController.update/2
PUT /api/products/:id SbSso.Api.ProductController.update/2
api_product_path DELETE /api/products/:id SbSso.Api.ProductController.destroy/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment