The purpose of this PR is to make the all api endpoints of the function are more readable. This change is made taking as an example the structure of the first conditional, where the ‘URLSearchParams' object is used to divide the string into pieces for easily understood.
Related Issue
N/A
Motivation and Context
The motivation to apply this change is to standardize the structure of the conditionals and allow the api endpoints more readable.
How Has This Been Tested?
After making the changes I ran yarn dev and confirmed that everything appeared as expected
Description
The purpose of this PR is to make the all api endpoints of the function are more readable. This change is made taking as an example the structure of the first conditional, where the ‘URLSearchParams' object is used to divide the string into pieces for easily understood.
Related Issue
N/A
Motivation and Context
The motivation to apply this change is to standardize the structure of the conditionals and allow the api endpoints more readable.
How Has This Been Tested?
After making the changes I ran
yarn dev
and confirmed that everything appeared as expectedResources
N/A