Refactor external_user_statistics to own controller action

This commit is contained in:
Sebastian Serth
2022-07-20 21:13:06 +02:00
committed by Sebastian Serth
parent 6ca5982a45
commit 2141fdb1ac
6 changed files with 64 additions and 58 deletions

View File

@ -477,6 +477,7 @@ de:
feedback: Feedback
requests_for_comments: Kommentaranfragen
study_group_dashboard: Live Dashboard
external_user_statistics: Statistik für externe Nutzer
show:
is_unpublished: Aufgabe ist deaktiviert
statistics:

View File

@ -477,6 +477,7 @@ en:
feedback: Feedback
requests_for_comments: Requests for Comments
study_group_dashboard: Live Dashboard
external_user_statistics: External User Statistics
show:
is_unpublished: Exercise is unpublished
statistics:

View File

@ -117,7 +117,9 @@ Rails.application.routes.draw do
resources :user_exercise_feedbacks, except: %i[show index]
resources :external_users, only: %i[index show], concerns: :statistics do
resources :exercises, concerns: :statistics
resources :exercises do
get :statistics, to: 'exercises#external_user_statistics', on: :member
end
member do
get :tag_statistics
end