feat: add trailingSlash middleware
This commit is contained in:
@@ -15,6 +15,7 @@ import * as handleAuth from "@/middlewares/handleAuth"
|
||||
import * as myPages from "@/middlewares/myPages"
|
||||
import * as redirect from "@/middlewares/redirect"
|
||||
import * as sasXScandic from "@/middlewares/sasXScandic"
|
||||
import * as trailingSlash from "@/middlewares/trailingSlash"
|
||||
import { getDefaultRequestHeaders } from "@/middlewares/utils"
|
||||
import * as webView from "@/middlewares/webView"
|
||||
import { findLang } from "@/utils/languages"
|
||||
@@ -49,6 +50,7 @@ export const middleware: NextMiddleware = async (request, event) => {
|
||||
|
||||
// Note that the order of middlewares is important since that is the order they are matched by.
|
||||
const middlewares = [
|
||||
trailingSlash,
|
||||
currentWebLogin,
|
||||
currentWebLoginEmail,
|
||||
currentWebLogout,
|
||||
|
||||
Reference in New Issue
Block a user