mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 22:05:13 +00:00
11 lines
282 B
Ruby
11 lines
282 B
Ruby
class StaticPagesController < ApplicationController
|
|
skip_before_action :require_authentication!, only: [:home]
|
|
|
|
def home
|
|
if signed_in?
|
|
@user_stats = CDNStatsService.user_stats(current_user)
|
|
else
|
|
@global_stats = CDNStatsService.global_stats
|
|
end
|
|
end
|
|
end
|