-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:koikiss-dev/jimov_api into dev
- Loading branch information
Showing
20 changed files
with
494 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Router } from "express"; | ||
import { HentaiHaven } from "../../../../scraper/sites/anime/hentaihaven/HentaiHaven"; | ||
const Anime = new HentaiHaven(); | ||
const router = Router(); | ||
|
||
// Filter | ||
router.get("/anime/hentaihaven/filter", async (req, res) => { | ||
const { search, page } = req.query; | ||
|
||
const data = await Anime.GetItemByFilter( | ||
search as string, | ||
page as unknown as number | ||
); | ||
res.send(data); | ||
}); | ||
|
||
// Anime Info +(Episodes list) | ||
router.get("/anime/hentaihaven/name/:name", async (req, res) => { | ||
const { name } = req.params; | ||
const data = await Anime.GetItemInfo(name); | ||
res.send(data); | ||
}); | ||
|
||
// Episode Info +(Video Servers) | ||
router.get("/anime/hentaihaven/episode/:episode", async (req, res) => { | ||
const { episode } = req.params; | ||
const data = await Anime.GetEpisodeServers(episode); | ||
res.send(data); | ||
}); | ||
|
||
export default router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Router } from "express"; | ||
import { HentaiLa } from "../../../../scraper/sites/anime/hentaila/HentaiLa"; | ||
const Anime = new HentaiLa(); | ||
const router = Router(); | ||
|
||
// Filter | ||
router.get("/anime/hentaila/filter", async (req, res) => { | ||
const { search } = req.query; | ||
|
||
const data = await Anime.GetItemByFilter( | ||
search as string | ||
); | ||
res.send(data); | ||
}); | ||
|
||
// Anime Info +(Episodes list) | ||
router.get("/anime/hentaila/name/:name", async (req, res) => { | ||
const { name } = req.params; | ||
const data = await Anime.GetItemInfo(name); | ||
res.send(data); | ||
}); | ||
|
||
// Episode Info +(Video Servers) | ||
router.get("/anime/hentaila/episode/:episode", async (req, res) => { | ||
const { episode } = req.params; | ||
const data = await Anime.GetEpisodeServers(episode); | ||
res.send(data); | ||
}); | ||
|
||
export default router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.