Improve Page structure and create a redirect middleware to set /films as homepage

This commit is contained in:
2020-12-17 18:28:32 +01:00
parent a7a30c37df
commit a413b6f637
4 changed files with 8 additions and 3 deletions

3
middleware/redirect.js Normal file
View File

@@ -0,0 +1,3 @@
export default function({ redirect, route }) {
if (route.path === "/") redirect("/films");
}