Fix ssl redirect and /blog -> /blog/
This commit is contained in:
parent
01abe766c7
commit
63ae51673a
@ -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:
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user