[mirotalk] - Fix Api
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user