From 087454659b382ac00abead6fc917686e9f2af9cb Mon Sep 17 00:00:00 2001 From: linkability <146661751+linkability@users.noreply.github.com> Date: Wed, 4 Oct 2023 16:10:42 +0100 Subject: [PATCH] Add middleware to account api-v1 --- src/server/routes/api/v1/account.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/routes/api/v1/account.ts b/src/server/routes/api/v1/account.ts index 8c8168d..7acbd99 100644 --- a/src/server/routes/api/v1/account.ts +++ b/src/server/routes/api/v1/account.ts @@ -1,8 +1,12 @@ import { Router } from "express"; import Files from "../../../lib/files"; +import { getAccount } from "../../../lib/middleware"; + let router = Router() +router.use(getAccount) + module.exports = function(files: Files) { return router } \ No newline at end of file