Skip to content

Commit 86b377e

Browse files
committed
Remmoved hardcoded middleware, fix output
1 parent 58e6239 commit 86b377e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/generator.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export async function createFiles(appConfig: AppConfig, outPath: string): Promis
4949

5050
// Select template based on type.
5151
if (isMiddleware(outFile)) {
52-
tplFile = `${templates}/AccessControlHeaders.js`;
52+
tplFile = `${templates}/${path.basename(outFile)}`;
5353
} else if (isRoute(outFile)) {
5454
tplFile = `${templates}/route` + fileSuffix(isAsync) + '.js';
5555
} else if (isApp(outFile)) {

0 commit comments

Comments
 (0)