mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:09:52 +01:00
inbox: only provide #show as GET
This commit is contained in:
parent
16bba0b7f0
commit
2f82e3be31
3 changed files with 3 additions and 5 deletions
|
@ -7,5 +7,4 @@
|
||||||
|
|
||||||
- if @more_data_available
|
- if @more_data_available
|
||||||
.d-flex.justify-content-center#paginator
|
.d-flex.justify-content-center#paginator
|
||||||
= button_to inbox_path(last_id: @inbox_last_id), class: "btn btn-light" do
|
= button_to t("voc.load"), inbox_path, class: "btn btn-light", method: :get, params: { last_id: @inbox_last_id }, form: { data: { "turbo-stream" => true } }
|
||||||
= t("voc.load")
|
|
||||||
|
|
|
@ -4,5 +4,4 @@
|
||||||
|
|
||||||
= turbo_stream.update "paginator" do
|
= turbo_stream.update "paginator" do
|
||||||
- if @more_data_available
|
- if @more_data_available
|
||||||
= button_to t("voc.load"), inbox_path(last_id: @inbox_last_id), class: "btn btn-light"
|
= button_to t("voc.load"), inbox_path, class: "btn btn-light", method: :get, params: { last_id: @inbox_last_id }, form: { data: { "turbo-stream" => true } }
|
||||||
|
|
||||||
|
|
|
@ -149,7 +149,7 @@ Rails.application.routes.draw do
|
||||||
match "/notifications(/:type)", to: "notifications#index", via: [:get, :post], as: :notifications, defaults: { type: "new" }
|
match "/notifications(/:type)", to: "notifications#index", via: [:get, :post], as: :notifications, defaults: { type: "new" }
|
||||||
|
|
||||||
post "/inbox/create", to: "inbox#create", as: :inbox_create
|
post "/inbox/create", to: "inbox#create", as: :inbox_create
|
||||||
match "/inbox(/:author)", via: [:get, :post], to: "inbox#show", as: :inbox
|
get "/inbox", to: "inbox#show", as: :inbox
|
||||||
|
|
||||||
match "/user/:username(/p/:page)", to: "user#show", via: [:get, :post], defaults: { page: 1 }
|
match "/user/:username(/p/:page)", to: "user#show", via: [:get, :post], defaults: { page: 1 }
|
||||||
match "/@:username(/p/:page)", to: "user#show", via: [:get, :post], as: :user, defaults: { page: 1 }
|
match "/@:username(/p/:page)", to: "user#show", via: [:get, :post], as: :user, defaults: { page: 1 }
|
||||||
|
|
Loading…
Reference in a new issue