Added signup route 👤
This commit is contained in:
24
backend/swagger.js
Normal file
24
backend/swagger.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import swaggerJSDoc from 'swagger-jsdoc';
|
||||
|
||||
// Define Swagger options
|
||||
const swaggerOptions = {
|
||||
swaggerDefinition: {
|
||||
openapi: '3.0.0',
|
||||
info: {
|
||||
title: 'LivePoll API',
|
||||
version: '1.0.0',
|
||||
description: 'API documentation for LivePoll',
|
||||
},
|
||||
servers: [
|
||||
{
|
||||
url: 'http://localhost:3000/api/v1', // your server URL
|
||||
},
|
||||
],
|
||||
},
|
||||
apis: ['./src/routes/v1/*.js'], // Path to the API docs
|
||||
};
|
||||
|
||||
// Initialize swagger-jsdoc
|
||||
const swaggerDocs = swaggerJSDoc(swaggerOptions);
|
||||
|
||||
export default swaggerDocs;
|
||||
Reference in New Issue
Block a user