mirror of
https://github.com/ASzc/change-string-case-action.git
synced 2024-11-24 02:13:51 +08:00
13 lines
318 B
JavaScript
13 lines
318 B
JavaScript
import { withAuthorizationPrefix } from "./with-authorization-prefix";
|
|
async function hook(token, request, route, parameters) {
|
|
const endpoint = request.endpoint.merge(
|
|
route,
|
|
parameters
|
|
);
|
|
endpoint.headers.authorization = withAuthorizationPrefix(token);
|
|
return request(endpoint);
|
|
}
|
|
export {
|
|
hook
|
|
};
|