Skip to content

Commit

Permalink
fix: ApiController template name referenced Controller (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
vovche authored May 9, 2022
1 parent a303f91 commit 07be759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class Extension {
'Microsoft.AspNetCore.Mvc',
'Microsoft.Extensions.Logging',
]));
this.KnownTemplates.set('apicontroller', new CsTemplate('Controller', 'createApiController', ['Microsoft.AspNetCore.Mvc']));
this.KnownTemplates.set('apicontroller', new CsTemplate('ApiController', 'createApiController', ['Microsoft.AspNetCore.Mvc']));
this.KnownTemplates.set('razor_page', new CshtmlTemplate('Razor_Page', 'createRazorPage', [
'Microsoft.AspNetCore.Mvc',
'Microsoft.AspNetCore.Mvc.RazorPages',
Expand Down

0 comments on commit 07be759

Please sign in to comment.