Add a debug prompt endpoint so that we can play with the prompts live

This commit is contained in:
Jorge Manrubia
2025-07-22 14:33:34 +02:00
parent 89a9e7f32c
commit 6d26195bc7
7 changed files with 140 additions and 62 deletions
+8
View File
@@ -0,0 +1,8 @@
class AdminController < ApplicationController
before_action :ensure_staff
private
def ensure_staff
head :forbidden unless Current.user.staff?
end
end