File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/Generators/Web/Codelisk.Controller.Generator/Generators Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 77using Codelisk . GeneratorAttributes . WebAttributes . Dto ;
88using Codelisk . GeneratorAttributes . WebAttributes . HttpMethod ;
99using Codelisk . GeneratorAttributes . WebAttributes . Manager ;
10+ using Codelisk . GeneratorShared . Constants ;
1011using Controller . Generator . CodeBuilders ;
1112using Foundation . Crawler . Crawlers ;
1213using 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 {
You can’t perform that action at this time.
0 commit comments