30 lines
767 B
JavaScript
30 lines
767 B
JavaScript
import axios from "axios";
|
|
import CryptoJS from "crypto-js";
|
|
import {
|
|
getToken,
|
|
azureHeadersPaged,
|
|
azureHeaders,
|
|
consoleLogger,
|
|
} from "../../../actions";
|
|
|
|
const WORDKEY = process.env.HASHKEY;
|
|
|
|
const WEBAPI_URL =
|
|
process.env.RELAY_ROOT ||
|
|
"https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/";
|
|
|
|
export default async function ApiProxy(req, res) {
|
|
var whichForm = req.query.whichForm;
|
|
|
|
// var queryUrl =
|
|
// "EntityDefinitions(LogicalName='pinswg_" +
|
|
// whichForm +
|
|
// "')/Attributes?$count=true&$select=LogicalName,RequiredLevel";
|
|
|
|
const mandatoryFieldsData = require("../../../data/mandatoryfields/pinswg_" +
|
|
whichForm +
|
|
".json");
|
|
|
|
return res.status(200).json(mandatoryFieldsData);
|
|
}
|