From 70bbd476061bbb48a589e289ddf01c6c6408bc9b Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 8 Jan 2023 07:03:24 -0800 Subject: [PATCH] Add endpoint and stub method --- app/controllers/api/v1/parties_controller.rb | 3 +++ config/routes.rb | 1 + 2 files changed, 4 insertions(+) diff --git a/app/controllers/api/v1/parties_controller.rb b/app/controllers/api/v1/parties_controller.rb index 258de6a..ff4ea0b 100644 --- a/app/controllers/api/v1/parties_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -57,6 +57,9 @@ module Api return render json: PartyBlueprint.render(@party, view: :destroyed, root: :checkin) if @party.destroy end + def remix + end + def index conditions = build_conditions(request.params) diff --git a/config/routes.rb b/config/routes.rb index 8256840..ee59a61 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,6 +16,7 @@ Rails.application.routes.draw do get 'parties/favorites', to: 'parties#favorites' get 'parties/:id', to: 'parties#show' + post 'parties/:id/remix', to: 'parties#remix' put 'parties/:id/jobs', to: 'jobs#update_job' put 'parties/:id/job_skills', to: 'jobs#update_job_skills'