Update plugins/hentai.js
Browse files- plugins/hentai.js +16 -0
plugins/hentai.js
CHANGED
@@ -2,6 +2,22 @@ import express from 'express';
|
|
2 |
import { AnimeHentai } from '../scrapper.js';
|
3 |
const HentaiRoutes = express.Router();
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
HentaiRoutes.get('/api/v1/hentai-anime', async (req, res) => {
|
6 |
try {
|
7 |
const result = await AnimeHentai();
|
|
|
2 |
import { AnimeHentai } from '../scrapper.js';
|
3 |
const HentaiRoutes = express.Router();
|
4 |
|
5 |
+
/**
|
6 |
+
* @swagger
|
7 |
+
* /api/v1/hentai-anime:
|
8 |
+
* get:
|
9 |
+
* summary: Hentai Anime Random
|
10 |
+
* parameters:
|
11 |
+
* - in: query
|
12 |
+
* name: query
|
13 |
+
* required: true
|
14 |
+
* description: null
|
15 |
+
* schema:
|
16 |
+
* type: string
|
17 |
+
* responses:
|
18 |
+
* 200:
|
19 |
+
* description: Success
|
20 |
+
*/
|
21 |
HentaiRoutes.get('/api/v1/hentai-anime', async (req, res) => {
|
22 |
try {
|
23 |
const result = await AnimeHentai();
|