app/models/postman_mta/route.rb in postman_mta-0.1.5 vs app/models/postman_mta/route.rb in postman_mta-0.1.6

- old
+ new

@@ -1,7 +1,15 @@ module PostmanMta class Route < ApplicationModel def index get('/api/v1/routes') end + + def update(uuid, params = {}) + patch("/api/v1/routes/#{uuid}", body: params) + end + + def create(params = {}) + post('/api/v1/routes', body: params) + end end end