[mirotalk] - Fix Api

This commit is contained in:
Miroslav Pejic
2022-09-23 11:11:23 +02:00
parent c3badd481d
commit 9042a4e45e
+1 -3
View File
@@ -164,6 +164,7 @@ app.use(compression()); // Compress all HTTP responses using GZip
app.use(express.json()); // Api parse body data as json
app.use(express.static(dir.public)); // Use all static files from the public folder
app.use(bodyParser.urlencoded({ extended: true })); // Need for Slack API body parser
app.use(apiBasePath + '/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument)); // api docs
// all start from here
app.get('*', function (next) {
@@ -256,9 +257,6 @@ app.get('/join/*', (req, res) => {
For api docs we use: https://swagger.io/
*/
// api docs
app.use(apiBasePath + '/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument));
// request meeting room endpoint
app.post([apiBasePath + '/meeting'], (req, res) => {
// check if user was authorized for the api call