added auth to party and friend

This commit is contained in:
2025-11-23 20:50:18 +01:00
parent 6b96c100a5
commit ea6541752c
3 changed files with 16 additions and 0 deletions

View File

@ -1,6 +1,8 @@
class FriendsController < ApplicationController
before_action :set_friend, only: %i[ show edit update destroy ]
http_basic_authenticate_with name: "admin", password: "passwort", only: %i[edit update create new destroy]
def index
@friends = Friend.all
end