5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 12:36:22 +00:00
panel/app/controllers/env_controller.rb
f 504f30997e
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: no fallar si no hay sitio del panel
2023-06-10 12:18:25 -03:00

11 lines
213 B
Ruby

# frozen_string_literal: true
class EnvController < ActionController::Base
skip_before_action :verify_authenticity_token
def index
@site = Site.find_by_name('panel')
stale? @site if @site
end
end