lexivo/config/routes.rb
Fibe Agent e9f5d8ece2
Some checks failed
CI / Lint & Test (push) Has been cancelled
Deploy Status Page / Build & Deploy (push) Has been cancelled
Lexivo: vocabulary learning app with SM-2 spaced repetition
- Word import (multi-format: word, word-def, word:def, word|def)
- Flashcard filter UI (swipe + keyboard arrows + Space to flip)
- SM-2 spaced repetition review queue
- Stimulus flashcard controller with 3D flip animation
2026-04-22 15:02:45 +00:00

20 lines
774 B
Ruby

# frozen_string_literal: true
Rails.application.routes.draw do
get "up" => "rails/health#show", as: :rails_health_check
get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
resources :words, only: [ :index, :create, :destroy ]
get "/filter", to: "filter#show", as: :filter
post "/filter/:id/known", to: "filter#known", as: :filter_known
post "/filter/:id/learning", to: "filter#learning", as: :filter_learning
post "/filter/:id/skip", to: "filter#skip", as: :filter_skip
get "/review", to: "reviews#show", as: :review
post "/review/:id/rate", to: "reviews#rate", as: :rate_review
root "words#index"
end