Update index.js
Browse files
index.js
CHANGED
@@ -53,6 +53,7 @@ app.use(cors({
|
|
53 |
methods: ['GET', 'POST'],
|
54 |
allowedHeaders: ['Content-Type', 'Authorization']
|
55 |
}));
|
|
|
56 |
app.use(bodyParser.json());
|
57 |
app.use(
|
58 |
bodyParser.urlencoded({
|
@@ -60,6 +61,10 @@ app.use(
|
|
60 |
})
|
61 |
);
|
62 |
|
|
|
|
|
|
|
|
|
63 |
// routes
|
64 |
app.use(GeminiRoutes);
|
65 |
app.use(FluxRoutes);
|
@@ -95,8 +100,4 @@ app.get('/', (req, res) => {
|
|
95 |
res.redirect('https://t.me/RendyProjects');
|
96 |
});
|
97 |
|
98 |
-
app.use(async (req, res, next) => {
|
99 |
-
await CheckMilWares.handle(req, res, next);
|
100 |
-
});
|
101 |
-
|
102 |
lifestyle.startServer(app);
|
|
|
53 |
methods: ['GET', 'POST'],
|
54 |
allowedHeaders: ['Content-Type', 'Authorization']
|
55 |
}));
|
56 |
+
|
57 |
app.use(bodyParser.json());
|
58 |
app.use(
|
59 |
bodyParser.urlencoded({
|
|
|
61 |
})
|
62 |
);
|
63 |
|
64 |
+
app.use(async (req, res, next) => {
|
65 |
+
await CheckMilWares.handle(req, res, next);
|
66 |
+
});
|
67 |
+
|
68 |
// routes
|
69 |
app.use(GeminiRoutes);
|
70 |
app.use(FluxRoutes);
|
|
|
100 |
res.redirect('https://t.me/RendyProjects');
|
101 |
});
|
102 |
|
|
|
|
|
|
|
|
|
103 |
lifestyle.startServer(app);
|