API de comptabilité horaire.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516
  1. Rails.application.routes.draw do
  2. namespace :api, defaults: { format: :json } do
  3. namespace :v1 do
  4. resources :users
  5. resources :tokens, only: %i[create]
  6. resources :teams do
  7. resources :memberships
  8. end
  9. resources :memberships, only: %i[index]
  10. resources :activities do
  11. resources :tasks
  12. end
  13. resources :tasks, only: %i[index]
  14. end
  15. end
  16. end