Skip to content

Commit

Permalink
Don't use ts extension when importing
Browse files Browse the repository at this point in the history
  • Loading branch information
rudokemper committed Sep 17, 2024
1 parent 84e6abd commit 1e0f356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ export default defineNuxtModule<ModuleOptions>({
// Add global middleware
addRouteMiddleware({
name: "oauth.global",
path: resolve("./runtime/middleware/oauth.global.ts"),
path: resolve("./runtime/middleware/oauth.global"),
global: true,
});

// Add server middleware for API authentication
addServerHandler({
middleware: true,
handler: resolve("./runtime/server/middleware/apiAuth.ts"),
handler: resolve("./runtime/server/middleware/apiAuth"),
});
},
});

0 comments on commit 1e0f356

Please sign in to comment.