File tree 2 files changed +15
-0
lines changed
templates/meister/services
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,13 @@ export class HttpClient {
105
105
} ) ;
106
106
}
107
107
108
+ putPrivateMeister ( data : unknown , requestConfig ?: AxiosRequestConfig ) {
109
+ return this . api . put ( "" , data , {
110
+ ...HttpClient . clientConfig ,
111
+ ...requestConfig ,
112
+ } ) ;
113
+ }
114
+
108
115
putByTitle ( data : unknown , requestConfig ?: AxiosRequestConfig ) {
109
116
return this . api . put ( "/:title" , data , {
110
117
...HttpClient . clientConfig ,
@@ -182,4 +189,5 @@ export default {
182
189
meister : new HttpClient ( "/api/meister" , axiosConfig ) ,
183
190
ranking : new HttpClient ( "/api/meister/ranking" , axiosConfig ) ,
184
191
main : new HttpClient ( "/api/main" , axiosConfig ) ,
192
+ private : new HttpClient ( "/api/meister/privateRanking" , axiosConfig ) ,
185
193
} ;
Original file line number Diff line number Diff line change @@ -19,3 +19,10 @@ export const getMeisterDetail = async (student: string) => {
19
19
} ) ;
20
20
return data ;
21
21
} ;
22
+
23
+ export const putMeisterRankingPrivate = async ( flag : boolean ) => {
24
+ const { data } = await httpClient . private . putPrivateMeister ( {
25
+ privateRanking : flag ,
26
+ } ) ;
27
+ return data ;
28
+ } ;
You can’t perform that action at this time.
0 commit comments