app/models/postman_mta/route.rb in postman_mta-0.1.7 vs app/models/postman_mta/route.rb in postman_mta-0.1.8
- old
+ new
@@ -1,15 +1,15 @@
module PostmanMta
class Route < ApplicationModel
def index
- get('/api/v1/routes')
+ get('/routes')
end
def update(uuid, params = {})
- patch("/api/v1/routes/#{uuid}", body: params)
+ patch("/routes/#{uuid}", body: params)
end
def create(params = {})
- post('/api/v1/routes', body: params)
+ post('/routes', body: params)
end
end
end