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

View File

@ -1,5 +1,6 @@
class PartiesController < ApplicationController
before_action :set_party, only: %i[ show edit update destroy ]
http_basic_authenticate_with name: "admin", password: "passwort", only: %i[edit update create new destroy show toggle_attendent]
def index
@parties = Party.all

View File

@ -0,0 +1,13 @@
<div>
<h1 class="font-bold text-4xl">Welcome</h1>
<p>Find me in app/views/welcome/index.html.erb</p>
</div>
<p class="mt-10">
<h2>Beschreibung</h2>
<ul>
<li>Was sind Tags</li>
<li>Was ist CSS</li>
<li>Wir machen und das Leben einfacher mit Tailwind CSS</li>
</ul>
</p>