Update index.js
Browse files
index.js
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import express from 'express';
|
2 |
const app = express()
|
3 |
|
4 |
-
import startServer
|
5 |
-
|
|
|
|
|
6 |
import {
|
7 |
OpenaiRes,
|
8 |
tebakgambar,
|
@@ -14,10 +16,6 @@ var CheckMilWare = require('./midware.js');
|
|
14 |
|
15 |
const CheckMilWares = new CheckMilWare();
|
16 |
|
17 |
-
const swaggerUi = require('swagger-ui-express');
|
18 |
-
const swaggerDocs = require('./swagger');
|
19 |
-
const exampleRoutes = require('./routes/example');
|
20 |
-
|
21 |
app.use('/api', exampleRoutes);
|
22 |
app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocs));
|
23 |
|
|
|
1 |
import express from 'express';
|
2 |
const app = express()
|
3 |
|
4 |
+
import startServer from './lifestyle';
|
5 |
+
import swaggerUi = from 'swagger-ui-express';
|
6 |
+
import swaggerDocs = from './swagger';
|
7 |
+
import exampleRoutes = from './akenox/routes/example';
|
8 |
import {
|
9 |
OpenaiRes,
|
10 |
tebakgambar,
|
|
|
16 |
|
17 |
const CheckMilWares = new CheckMilWare();
|
18 |
|
|
|
|
|
|
|
|
|
19 |
app.use('/api', exampleRoutes);
|
20 |
app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocs));
|
21 |
|