Fix ssl redirect and /blog -> /blog/

This commit is contained in:
Garrett Mills 2022-06-07 23:44:51 -05:00
parent 01abe766c7
commit 63ae51673a
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,8 @@ apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: garrettmills-dev-ingress name: garrettmills-dev-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: 'false'
spec: spec:
tls: tls:
- hosts: - hosts:

View File

@ -1,4 +1,4 @@
import {Route, SessionAuthMiddleware} from '@extollo/lib' import {redirect, Route, SessionAuthMiddleware} from '@extollo/lib'
import {Home} from '../controllers/Home.controller' import {Home} from '../controllers/Home.controller'
import {PageView} from '../middlewares/PageView.middleware' import {PageView} from '../middlewares/PageView.middleware'
import {Snippets} from '../controllers/Snippets.controller' import {Snippets} from '../controllers/Snippets.controller'
@ -15,6 +15,9 @@ Route
.calls<Home>(Home, home => home.welcome) .calls<Home>(Home, home => home.welcome)
.alias('home') .alias('home')
Route.get('/blog')
.handledBy(() => redirect('/blog/'))
Route.post('/contact') Route.post('/contact')
.parameterMiddleware(ValidContactForm) .parameterMiddleware(ValidContactForm)
.calls<Home>(Home, home => home.contact) .calls<Home>(Home, home => home.contact)