@@ -3,16 +3,13 @@ namespace Books.Api.Controllers
33 using Microsoft . AspNetCore . Mvc ;
44 using System . Collections . Generic ;
55
6- using Books . Api . Models ;
7- using Books . Api . Services ;
8-
96 [ Route ( "api/[controller]" ) ]
107 [ ApiController ]
118 public class GroupController : ControllerBase
129 {
13- private readonly GroupService _groupService ;
10+ private readonly Services . GroupService _groupService ;
1411
15- public GroupController ( GroupService groupService )
12+ public GroupController ( Services . GroupService groupService )
1613 {
1714 _groupService = groupService ;
1815 }
@@ -21,7 +18,7 @@ public GroupController(GroupService groupService)
2118 public ActionResult < List < Models . Group > > Get ( ) =>
2219 _groupService . Get ( ) ;
2320
24- [ HttpGet ( "{id:length(36)}" , Name = "GetUserGroups" ) ]
21+ [ HttpGet ( "User/ {id:length(36)}" , Name = "GetUserGroups" ) ]
2522 public ActionResult < List < Models . Group > > Get ( string id )
2623 {
2724 var groups = _groupService . Get ( id ) ;
@@ -34,7 +31,7 @@ public GroupController(GroupService groupService)
3431 return groups ;
3532 }
3633
37- [ HttpGet ( "{id:length(24)}" , Name = "GetUserGroup " ) ]
34+ [ HttpGet ( "{id:length(24)}" , Name = "GetGroup " ) ]
3835 public ActionResult < Models . Group > GetUserGroup ( string id )
3936 {
4037 var group = _groupService . GetGroup ( id ) ;
0 commit comments