mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 07:39:39 +02:00
New onboarding, trials, Stripe integration (#2185)
* New onboarding, trials, Stripe integration * Fix tests * Lint fixes * Fix subscription endpoints
This commit is contained in:
parent
79b4a3769b
commit
a51c4d2cba
53 changed files with 847 additions and 372 deletions
|
@ -24,7 +24,6 @@ Rails.application.routes.draw do
|
|||
|
||||
get "changelog", to: "pages#changelog"
|
||||
get "feedback", to: "pages#feedback"
|
||||
get "early-access", to: "pages#early_access"
|
||||
|
||||
resource :registration, only: %i[new create]
|
||||
resources :sessions, only: %i[new create destroy]
|
||||
|
@ -39,8 +38,9 @@ Rails.application.routes.draw do
|
|||
|
||||
resource :onboarding, only: :show do
|
||||
collection do
|
||||
get :profile
|
||||
get :preferences
|
||||
get :goals
|
||||
get :trial
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -55,7 +55,11 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
resource :subscription, only: %i[new show] do
|
||||
get :success, on: :collection
|
||||
collection do
|
||||
get :upgrade
|
||||
get :success
|
||||
post :start_trial
|
||||
end
|
||||
end
|
||||
|
||||
resources :tags, except: :show do
|
||||
|
@ -212,6 +216,9 @@ Rails.application.routes.draw do
|
|||
|
||||
get "imports/:import_id/upload/sample_csv", to: "import/uploads#sample_csv", as: :import_upload_sample_csv
|
||||
|
||||
get "privacy", to: redirect("https://maybefinance.com/privacy")
|
||||
get "terms", to: redirect("https://maybefinance.com/tos")
|
||||
|
||||
# Defines the root path route ("/")
|
||||
root "pages#dashboard"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue