Update index.js
Browse files
index.js
CHANGED
@@ -9,10 +9,10 @@ import * as lifestyle from './lifestyle.js';
|
|
9 |
import { OpenaiRes, tebakgambar, AnimeHentai } from './scrapper.js';
|
10 |
import { CheckMilWare } from './midware.js';
|
11 |
|
12 |
-
|
13 |
const CheckMilWares = new CheckMilWare();
|
14 |
|
15 |
-
|
16 |
app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocs));
|
17 |
|
18 |
app.get('/', (req, res) => {
|
|
|
9 |
import { OpenaiRes, tebakgambar, AnimeHentai } from './scrapper.js';
|
10 |
import { CheckMilWare } from './midware.js';
|
11 |
|
12 |
+
import exampleRoutes from './routes/example.js';
|
13 |
const CheckMilWares = new CheckMilWare();
|
14 |
|
15 |
+
app.use('/api', exampleRoutes);
|
16 |
app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocs));
|
17 |
|
18 |
app.get('/', (req, res) => {
|