sllewely / event_buddies

2 stars 0 forks source link

namespace events to api #19

Closed sllewely closed 6 years ago

sllewely commented 6 years ago

Feature

Routes namespaced to api

Jasmines-MacBook-Pro:concert_buddies Sarah$ rake routes
                   Prefix Verb   URI Pattern                                                                              Controller#Action
               home_index GET    /home/index(.:format)                                                                    home#index
               api_events GET    /api/events(.:format)                                                                    api/events#index
                          POST   /api/events(.:format)                                                                    api/events#create
            new_api_event GET    /api/events/new(.:format)                                                                api/events#new
           edit_api_event GET    /api/events/:id/edit(.:format)                                                           api/events#edit
                api_event GET    /api/events/:id(.:format)                                                                api/events#show
                          PATCH  /api/events/:id(.:format)                                                                api/events#update
                          PUT    /api/events/:id(.:format)                                                                api/events#update
                          DELETE /api/events/:id(.:format)                                                                api/events#destroy
       rails_service_blob GET    /rails/active_storage/blobs/:signed_id/*filename(.:format)                               active_storage/blobs#show
rails_blob_representation GET    /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show
       rails_disk_service GET    /rails/active_storage/disk/:encoded_key/*filename(.:format)                              active_storage/disk#show
update_rails_disk_service PUT    /rails/active_storage/disk/:encoded_token(.:format)                                      active_storage/disk#update
     rails_direct_uploads POST   /rails/active_storage/direct_uploads(.:format)                                           active_storage/direct_uploads#create

Tests

rspec spec

...

Finished in 0.19118 seconds (files took 2.76 seconds to load)
3 examples, 0 failures