Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
memoryClient.insertOne({
entityName: "patient",
value: {
name: "hoge",
email: "hoge@cureapp.jp",
password: crypt("hoge")
}
});
memoryClient.insertOne({
entityName: "hospital",
value: { name: "hoge hospital" }
});
const server = new PhenylHttpServer(http.createServer(), {
restApiHandler: new PhenylRestApi(functionalGroup, {
// @ts-ignore TODO
client: memoryClient,
sessionClient: memoryClient.createSessionClient() as KvsClient<
Session<"patient", MemberSessionValue>
>
}),
customRequestHandler: new PhenylApiExplorer(functionalGroup, {
path: "/explorer"
}).handler
});
server.listen(PORT);
console.log(`server is listening on :${PORT}`);