Skip to content
Snippets Groups Projects
Commit 204587ca authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

feat: mock /CheckTranscription

parent 6f40b2db
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,40 @@ server.route({ ...@@ -46,6 +46,40 @@ server.route({
}, },
}); });
server.route({
method: "POST",
url: "/CheckTranscription",
schema: {
body: {
type: "object",
properties: {
deltaTime: { type: "number" },
refData: {
type: "object",
properties: {
id: { type: "number" },
image: { type: "string" },
},
},
transcription: { type: "string" },
},
},
response: {
200: {
type: "object",
properties: {
hitTheTarget: { type: "boolean" },
},
},
},
},
handler: function (request, reply) {
reply.send({
hitTheTarget: true,
});
},
});
server.listen(process.env.PORT as string, "0.0.0.0", function (err, address) { server.listen(process.env.PORT as string, "0.0.0.0", function (err, address) {
if (err) { if (err) {
server.log.error(err); server.log.error(err);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment