mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 18:35:12 +00:00
12 lines
352 B
Ruby
12 lines
352 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
|