update user, auth, token, roles, done

This commit is contained in:
2024-11-26 23:58:38 +07:00
parent 6e71588f91
commit 9608e96401
27 changed files with 1842 additions and 152 deletions

View File

@ -1,4 +1,4 @@
const swaggerAutogen = require('swagger-autogen')();
const swaggerAutogen = require('swagger-autogen')({ openapi: '3.0.0' });
const config = require('config');
const doc = {
@ -8,6 +8,14 @@ const doc = {
version: config.get('app.version')
},
host: config.get('server.host_swagger') + ':' + config.get('server.port'),
components: {
securitySchemes: {
bearerAuth: {
type: 'http',
scheme: 'bearer'
}
}
}
};
const outputFile = './swagger.json';