mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 07:30:20 +00:00
19 lines
451 B
JavaScript
19 lines
451 B
JavaScript
import { PATH } from "~/const";
|
|
|
|
/**
|
|
* This route lets us get the public key of infisical. Th euser doesn't have to be authenticated since this is just the public key.
|
|
* @param {*} req
|
|
* @param {*} res
|
|
* @returns
|
|
*/
|
|
const publicKeyInfisical = (req, res) => {
|
|
return fetch(PATH + "/api/v1/key/publicKey/infisical", {
|
|
method: "GET",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
});
|
|
};
|
|
|
|
export default publicKeyInfisical;
|