From 1bae17ff381f4086eecf7aae6a24579006699ea5 Mon Sep 17 00:00:00 2001 From: Till <126667408+OryTiki@users.noreply.github.com> Date: Wed, 2 Aug 2023 12:32:58 +0200 Subject: [PATCH] fix: add title to codeblock (#1483) --- docs/getting-started/integrate-auth/10_expressjs.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/integrate-auth/10_expressjs.mdx b/docs/getting-started/integrate-auth/10_expressjs.mdx index 2110100c8..1e01fc57c 100644 --- a/docs/getting-started/integrate-auth/10_expressjs.mdx +++ b/docs/getting-started/integrate-auth/10_expressjs.mdx @@ -76,7 +76,7 @@ This requires the express app (`npm run start`) to run on port 3000. The browser Next we add a session check to the default home page of the example application. The highlighted code is what we added to check whether the user is signed in, and redirect them to the login page if not: -```mdx-code-block +```mdx-code-block title="routes/index.js" import homePage from '!!raw-loader!../../../code-examples/protect-page-login/expressjs/routes/index.js' import CodeBlock from '@theme/CodeBlock'