mirror of
https://github.com/System-End/cdn.git
synced 2026-04-20 00:25:16 +00:00
12 lines
354 B
Ruby
12 lines
354 B
Ruby
class StaticPagesController < ApplicationController
|
|
skip_before_action :require_authentication!, only: [ :home ]
|
|
|
|
def home
|
|
@flavor_text = FlavorTextService.new(user: current_user).generate
|
|
if signed_in?
|
|
@user_stats = CDNStatsService.user_stats(current_user)
|
|
else
|
|
@global_stats = CDNStatsService.global_stats
|
|
end
|
|
end
|
|
end
|