From fc353a4912fe92fea7d7944d7fef6bc3ec975976 Mon Sep 17 00:00:00 2001 From: Thim <> Date: Tue, 24 Sep 2024 09:45:37 +0200 Subject: [PATCH] Docs - Stoplight API reference --- restapi-server/prisma/dev.db | Bin 524288 -> 524288 bytes restapi-server/src/static/docs.routes.js | 5 +++++ 2 files changed, 5 insertions(+) diff --git a/restapi-server/prisma/dev.db b/restapi-server/prisma/dev.db index 8f297405ff5903f93fe8f30d9eb00ac403d9c784..87ecca627a2e7eca60dd97c6e68a24f470d25938 100644 GIT binary patch delta 118 zcmZo@P-tjSm>|u#eWHvr2EzF|FkKmY*0ODx_1 delta 118 zcmZo@P-tjSm>|u#ZK8}b{xNAOHZH6fCg- diff --git a/restapi-server/src/static/docs.routes.js b/restapi-server/src/static/docs.routes.js index 66fca4c..cc219ea 100644 --- a/restapi-server/src/static/docs.routes.js +++ b/restapi-server/src/static/docs.routes.js @@ -23,6 +23,11 @@ router.get('/swagger', function (req, res) { res.sendFile(filePath); }); +router.get('/stoplight', function (req, res) { + const filePath = path.join(__dirname, '../../public/docs/stoplight/index.html'); + res.sendFile(filePath); +}); + router.get('/openapi', function (req, res) { const filePath = path.join(__dirname, '../../../openapi.yml'); res.sendFile(filePath);