forked from RyanYuuki/Enoki_API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
25 lines (21 loc) · 908 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const express = require("express");
const mangaNatoRoutes = require("./src/routes/mangaNatoRoutes");
const managBatRoutes = require("./src/routes/mangaBatRoutes");
const mangaKakalotRoutes = require("./src/routes/mangaKakalotRoutes");
const mangaFireRoutes = require("./src/routes/mangaFireRoutes");
const app = express();
const port = 5000;
app.use(express.json());
app.get("/", (req, res) => {
res.send({
message:
"Welcome to the ultimate Manga API – delivering popular manga sources directly to your fingertips! Seamlessly access titles, chapters, and more from all your favorite manga sites, all through one powerful API",
});
});
app.use("/manganato", mangaNatoRoutes);
app.use("/mangabat", managBatRoutes);
app.use("/mangakakalot", mangaKakalotRoutes);
app.use("/mangafire", mangaFireRoutes);
app.listen(port, () => {
console.log(`App listening on http://localhost:${port}`);
});