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
|
||||
metadata:
|
||||
name: garrettmills-dev-ingress
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: 'false'
|
||||
spec:
|
||||
tls:
|
||||
- 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 {PageView} from '../middlewares/PageView.middleware'
|
||||
import {Snippets} from '../controllers/Snippets.controller'
|
||||
@ -15,6 +15,9 @@ Route
|
||||
.calls<Home>(Home, home => home.welcome)
|
||||
.alias('home')
|
||||
|
||||
Route.get('/blog')
|
||||
.handledBy(() => redirect('/blog/'))
|
||||
|
||||
Route.post('/contact')
|
||||
.parameterMiddleware(ValidContactForm)
|
||||
.calls<Home>(Home, home => home.contact)
|
||||
|
Loading…
Reference in New Issue
Block a user