File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,9 +149,9 @@ const getSubrouteLayoutContext = (
149149
150150const getEndpointLayoutContext = (
151151 endpoint : Endpoint ,
152- route : Pick < Route , 'name ' > ,
152+ route : Pick < Route , 'path ' > ,
153153) : EndpointLayoutContext => {
154- const prefix = ` ${ pascalCase ( route . name ) } ${ pascalCase ( endpoint . name ) } `
154+ const prefix = pascalCase ( [ route . path . split ( '/' ) , endpoint . name ] . join ( '_' ) )
155155
156156 const requestFormat = [ 'GET' , 'DELETE' ] . includes (
157157 endpoint . request . semanticMethod ,
@@ -185,10 +185,7 @@ const getEndpointLayoutContext = (
185185
186186const getResponseContext = (
187187 endpoint : Endpoint ,
188- ) : Pick <
189- EndpointLayoutContext ,
190- 'returnsVoid' | 'responseKey' | 'resourceType'
191- > => {
188+ ) : Pick < EndpointLayoutContext , 'returnsVoid' | 'responseKey' > => {
192189 if ( endpoint . response . responseType === 'void' )
193190 return {
194191 returnsVoid : true ,
You can’t perform that action at this time.
0 commit comments