in28minutes / master-spring-and-spring-boot

Spring and Spring Boot Tutorial For Absolute Beginners - 10-in-1 - Spring to Spring Boot to REST API to Full Stack to Containers to Cloud
https:/links.in28minutes.com/sb
1.29k stars 648 forks source link

in Step 24 in Frontend HelloWorldService.js #14

Open parassaini29 opened 1 year ago

parassaini29 commented 1 year ago

I have found an issue with HelloWorldService.js in which there's a commented code in executeBasicAuthenticationService this code will not comment make it uncommented otherwise it'll not sent the token. We can comment code in retrieveHelloWorldPathVaraible instead.

export const retrieveHelloWorldPathVariable = (username, token) => apiClient.get(/hello-world/path-variable/${username}, { / headers: { //can be commented Authorization: token, }, / });

export const executeBasicAuthenticationService = (token) => apiClient.get(/basicauth, /{ //Can't be commented headers: { /Can't be commented Authorization: token, },/ });