ahoy_panel 0.0.27 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75d645c34be65e95f6dc0398dda76f5909011c65b709596efbfe265b03c367b4
4
- data.tar.gz: d3f9e0227a2a16701e314d185c88084180b5a0a031f9847243302f0bd2928dd1
3
+ metadata.gz: c3e036c634e518074d4c850f65168a3f04afa102f9ea90735af6d9a9965a956a
4
+ data.tar.gz: 73b2e2680374cb098f9af193bdba57afd9999985593b70e10fe0f59714c67b63
5
5
  SHA512:
6
- metadata.gz: b95e9b5be81ac08d19149bca18751f9a882f6041d7946517d139e96d00a3d323043b4081b51f6a4b294c5aa18b322e81ee6559fc27f8872fda3e872211a297fe
7
- data.tar.gz: 2a9237745ebabe9c18c5fddf72447cfa672803996043680d7c0c95b12012ce3bf07f8b64a080215a7f8cb3f114f16f7c37b54a3f93d2bbe1b43854d95ea3cbe9
6
+ metadata.gz: d756a60f63a5e6050f778042eac57142228f308358373a41eb1b46912ac711af9080ec2b53232230962366c446acdf68a1effb171c6254f09a5796683fca8af0
7
+ data.tar.gz: 9e911f57ee73adad0db11956a40ec55ba956b316edf6b9235217e59a59d63cfbc11b8f23e21a35536ff024354c690e403be1cdda2024fceb6769f2e40e79c113
@@ -34,6 +34,12 @@ module AhoyPanel
34
34
  render json: { events: @events, total_count: @page.present? ? @events.total_count : nil }
35
35
  end
36
36
 
37
+ def show
38
+ @event = ::Ahoy::Event.find(params[:id])
39
+
40
+ render json: @event
41
+ end
42
+
37
43
  def dates
38
44
  start_date = ::Ahoy::Event.order(time: :asc).first.time.to_date
39
45
  end_date = ::Ahoy::Event.order(time: :desc).first.time.to_date
data/config/routes.rb CHANGED
@@ -3,5 +3,5 @@ AhoyPanel::Engine.routes.draw do
3
3
  resources :visits, only: [:index, :show]
4
4
 
5
5
  get "event_dates", to: "events#dates"
6
- resources :events, only: [:index]
6
+ resources :events, only: [:index, :show]
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module AhoyPanel
2
- VERSION = "0.0.27"
2
+ VERSION = "0.0.28"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ahoy_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Jeon
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-01 00:00:00.000000000 Z
10
+ date: 2025-04-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails