diff --git a/src/Generators/Web/Codelisk.Controller.Generator/Generators/ControllerGenerator.cs b/src/Generators/Web/Codelisk.Controller.Generator/Generators/ControllerGenerator.cs index fffc061..bf8be06 100644 --- a/src/Generators/Web/Codelisk.Controller.Generator/Generators/ControllerGenerator.cs +++ b/src/Generators/Web/Codelisk.Controller.Generator/Generators/ControllerGenerator.cs @@ -7,6 +7,7 @@ using Codelisk.GeneratorAttributes.WebAttributes.Dto; using Codelisk.GeneratorAttributes.WebAttributes.HttpMethod; using Codelisk.GeneratorAttributes.WebAttributes.Manager; +using Codelisk.GeneratorShared.Constants; using Controller.Generator.CodeBuilders; using Foundation.Crawler.Crawlers; using Foundation.Crawler.Extensions; @@ -122,6 +123,7 @@ ClassDeclarationSyntax baseController result .AddMethod($"GetFull", Accessibility.Public) .AddParameter("Guid", "id") + .AddAttribute($"[{Constants.HttpGetAttribute}(\"{ApiUrls.GetFull}\")]") .MakeAsync() .WithReturnTypeTask(dto.GetFullModelName()) .WithBody(x => @@ -134,6 +136,7 @@ ClassDeclarationSyntax baseController result .AddMethod($"GetAllFull", Accessibility.Public) .MakeAsync() + .AddAttribute($"[{Constants.HttpGetAttribute}(\"{ApiUrls.GetAllFull}\")]") .WithReturnTypeTaskList(dto.GetFullModelName()) .WithBody(x => {