Created Woodpecker CI/CD deployment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Created Dockerfile for packing up API and Web projects as Docker image
This commit is contained in:
19
Web/src/api/v1/misc.js
Normal file
19
Web/src/api/v1/misc.js
Normal file
@ -0,0 +1,19 @@
|
||||
import { callExternalApi } from "../apiHelper";
|
||||
|
||||
const apiServerUrl = `${process.env.REACT_APP_API_BASE_URL}/v1/Misc`;
|
||||
|
||||
export const getWebsiteMetaData = async(accessToken, url) => {
|
||||
const config = {
|
||||
url: `${apiServerUrl}/GetWebsiteMetaData`,
|
||||
method: "GET",
|
||||
headers: {
|
||||
"content-type": "application/json",
|
||||
Authorization: `Bearer ${accessToken}`
|
||||
},
|
||||
params: {
|
||||
'url': url
|
||||
}
|
||||
};
|
||||
|
||||
return await callExternalApi({config});
|
||||
}
|
||||
Reference in New Issue
Block a user