@@ -144,4 +144,83 @@ export const refreshTokenAdmin = async (token) => {
144
144
} catch ( error ) {
145
145
return error . response . data ;
146
146
}
147
- }
147
+ }
148
+
149
+ export const getFullCoordenadores = async ( token ) => {
150
+ try {
151
+ const response = await api . get ( 'admin/table/coordenadores' , {
152
+ headers : {
153
+ authorization : `${ token } `
154
+ }
155
+ } ) ;
156
+ return response ;
157
+ } catch ( error ) {
158
+ return error . response . data ;
159
+ }
160
+ }
161
+
162
+ export const getFullCursos = async ( token ) => {
163
+ try {
164
+ const response = await api . get ( 'admin/table/cursos' , {
165
+ headers : {
166
+ authorization : `${ token } `
167
+ }
168
+ } ) ;
169
+ return response ;
170
+ } catch ( error ) {
171
+ return error . response . data ;
172
+ }
173
+ }
174
+
175
+ export const getFullEstagios = async ( token ) => {
176
+ try {
177
+ const response = await api . get ( 'admin/table/estagios' , {
178
+ headers : {
179
+ authorization : `${ token } `
180
+ }
181
+ } ) ;
182
+ return response ;
183
+ } catch ( error ) {
184
+ return error . response . data ;
185
+ }
186
+ }
187
+
188
+ export const getFullFuncionarios = async ( token ) => {
189
+ try {
190
+ const response = await api . get ( 'admin/table/funcionarios' , {
191
+ headers : {
192
+ authorization : `${ token } `
193
+ }
194
+ } ) ;
195
+ return response ;
196
+ } catch ( error ) {
197
+ return error . response . data ;
198
+ }
199
+ }
200
+
201
+ export const getFullTurmas = async ( token ) => {
202
+ try {
203
+ const response = await api . get ( 'admin/table/turmas' , {
204
+ headers : {
205
+ authorization : `${ token } `
206
+ }
207
+ } ) ;
208
+ return response ;
209
+ } catch ( error ) {
210
+ return error . response . data ;
211
+ }
212
+ }
213
+
214
+ export const getFullProfessores = async ( token ) => {
215
+ try {
216
+ const response = await api . get ( 'admin/table/professores' , {
217
+ headers : {
218
+ authorization : `${ token } `
219
+ }
220
+ } ) ;
221
+ return response ;
222
+ } catch ( error ) {
223
+ return error . response . data ;
224
+ }
225
+ }
226
+
0 commit comments