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
\ No newline at end of file
<!DOCTYPE html>
<%= 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=""></script>
<%= stylesheet_link_tag "application", :media => "all" %>
<link rel="stylesheet" href="">
<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 '/>
Die VPN Verbindung funktioniert
\ 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|
{"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|
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