Skip to content

Commit a604e9d

Browse files
committed
GetFull
1 parent 7a4435d commit a604e9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Generators/Web/Codelisk.Controller.Generator/Generators/ControllerGenerator.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Codelisk.GeneratorAttributes.WebAttributes.Dto;
88
using Codelisk.GeneratorAttributes.WebAttributes.HttpMethod;
99
using Codelisk.GeneratorAttributes.WebAttributes.Manager;
10+
using Codelisk.GeneratorShared.Constants;
1011
using Controller.Generator.CodeBuilders;
1112
using Foundation.Crawler.Crawlers;
1213
using Foundation.Crawler.Extensions;
@@ -122,6 +123,7 @@ ClassDeclarationSyntax baseController
122123
result
123124
.AddMethod($"GetFull", Accessibility.Public)
124125
.AddParameter("Guid", "id")
126+
.AddAttribute($"[{Constants.HttpGetAttribute}(\"{ApiUrls.GetFull}\")]")
125127
.MakeAsync()
126128
.WithReturnTypeTask(dto.GetFullModelName())
127129
.WithBody(x =>
@@ -134,6 +136,7 @@ ClassDeclarationSyntax baseController
134136
result
135137
.AddMethod($"GetAllFull", Accessibility.Public)
136138
.MakeAsync()
139+
.AddAttribute($"[{Constants.HttpGetAttribute}(\"{ApiUrls.GetAllFull}\")]")
137140
.WithReturnTypeTaskList(dto.GetFullModelName())
138141
.WithBody(x =>
139142
{

0 commit comments

Comments
 (0)