Extract upsale pages into CustomComponents and render them on individual rails routes instead of Angular

This commit is contained in:
Henriette Darge
2024-07-25 11:18:23 +02:00
committed by Oliver Günther
parent 7593fb2502
commit 092d5cd600
7 changed files with 35 additions and 17 deletions
+1 -7
View File
@@ -29,7 +29,7 @@
class AngularController < ApplicationController
before_action :require_login
no_authorization_required! :empty_layout, :notifications_layout
no_authorization_required! :empty_layout
def empty_layout
# Frontend will handle rendering
@@ -37,12 +37,6 @@ class AngularController < ApplicationController
render html: "", layout: "angular/angular"
end
def notifications_layout
# Frontend will handle rendering
# but we will need to render with notification specific layout
render html: "", layout: "angular/notifications"
end
def login_back_url_params
params.permit(:state)
end