fix(controller): remove logs and minor comments
このコミットが含まれているのは:
コミット
cdf564838b
|
@ -1,11 +1,9 @@
|
||||||
import { scrapeContent } from "../../scraper/simply-hentai/simply-hentaiGetController";
|
import { scrapeContent } from "../../scraper/simply-hentai/simply-hentaiGetController";
|
||||||
import c from "../../utils/options";
|
import c from "../../utils/options";
|
||||||
import { logger } from "../../utils/logger";
|
|
||||||
|
|
||||||
export async function getSimplyhentai(req: any, res: any) {
|
export async function getSimplyhentai(req: any, res: any) {
|
||||||
try {
|
try {
|
||||||
const book = req.query.book || "";
|
const book = req.query.book || "";
|
||||||
//if book not following format "abc/1", trhow error
|
|
||||||
// if (book.split("/").length !== 2) throw Error("Book must be in format 'book_example/chapter'. Example: 'fate_lewd_summoning/1'");
|
// if (book.split("/").length !== 2) throw Error("Book must be in format 'book_example/chapter'. Example: 'fate_lewd_summoning/1'");
|
||||||
const url = `${c.SIMPLY_HENTAI_PROXIFIED}/${book}`;
|
const url = `${c.SIMPLY_HENTAI_PROXIFIED}/${book}`;
|
||||||
console.log(url);
|
console.log(url);
|
||||||
|
|
読み込み中…
新しいイシューから参照