Skip to content

Commit 969552b

Browse files
committed
feat : Register API endpoint and route info in routes.rb
구현 API에 대한 route 및 controller 메서드 매핑을 등록했습니다. - `schedules` 리소스에 대한 기본 API 추가 - 추가적인 요구사항(확정 기능, 가능 시간대 조회 기능)에 대한 요소 반영 * Ruby Swagger UI 및 API에 대해 mount를 진행했습니다.
1 parent 756eb10 commit 969552b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

config/routes.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
mount Rswag::Ui::Engine => "/api-docs"
33
mount Rswag::Api::Engine => "/api-docs"
44

5-
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
6-
# Can be used by load balancers and uptime monitors to verify that the app is live.
75
get "up" => "rails/health#show", as: :rails_health_check
86

9-
# Defines the root path route ("/")
10-
# root "posts#index"
7+
resources :schedules, only: [ :index, :create, :update, :destroy, :show ] do
8+
member do
9+
patch :confirm
10+
end
11+
collection do
12+
get :available
13+
end
14+
end
1115
end

0 commit comments

Comments
 (0)