-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddSchemas.js
More file actions
22 lines (21 loc) · 902 Bytes
/
addSchemas.js
File metadata and controls
22 lines (21 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const { usersList } = require('./schemas/usersSchema/usersList');
const { bookCategoriesLIst } = require('./schemas/bookCategorySchema/bookCategoriesList');
const { messagesList } = require('./schemas/messages/messagesList);
const { messageData } = require('./schemas/messages/messageData);
const { ticketsList } = require('./schemas/tickets/ticketsList);
const { ticketAdd } = require('./schemas/tickets/ticketAdd);
const { ticketProfile } = require('./schemas/tickets/ticketProfile);
class AddSchema {
constructor({
FastifyOpenApi,
}) {
this.fastify.addSchema(usersList);
this.fastify.addSchema(bookCategoriesLIst);
this.fastify.addSchema(messagesList);
this.fastify.addSchema(messageData);
this.fastify.addSchema(ticketsList);
this.fastify.addSchema(ticketAdd);
this.fastify.addSchema(ticketProfile);
}
}
module.exports = AddSchema;