Commit eee762f7 authored by Maxim's avatar Maxim
Browse files

Added html test page vpn and controller

parent 7b258b28
class VpnController < ActionController::Base
def vpn; end
end
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Gruppenverwaltung</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_pack_tag "application", media: "all", 'data-turbolinks-track': "reload" %>
<%= javascript_pack_tag "application", 'data-turbolinks-track': "reload" %>
<%= yield :js %>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<%= stylesheet_link_tag "application", :media => "all" %>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css">
</head>
<body style="display: flex;flex-direction: column;min-height: 100vh;">
<div class="row">
<div class="col">
<div class="mainPageText">
<h2><%= t('main.title') %></h2>
<img src="<%= image_path('Logo.png') %>" class="mainPageText" style='display: block; margin-left: auto; margin-right: auto '/>
<br>
<h1>
Die VPN Verbindung funktioniert
</h1>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
......@@ -18,9 +18,23 @@ Rails.application.routes.draw do
get '/', to: 'index#main'
get 'vpn', to: 'vpn#vpn'
match 'lang/:locale', to: 'index#change_locale', as: :change_locale, via: [:get]
# get '/', to: 'index#index'
get '/vpntest', to: proc{ |env|
[
302,
{"Content-Type" => 'text/plain',
'Location' => '/vpn',
'Set-Cookie' => 'vpn=1; Expires=Fri, 31 Dec 9999 23:59:59 GMT'},
['302 found']
]
}
get '/groupa', to: proc{ |env|
[
302,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment