first commit

This commit is contained in:
2026-07-16 20:48:43 -03:00
commit 5696cee264
1111 changed files with 322270 additions and 0 deletions
@@ -0,0 +1,18 @@
import { Request, Response } from "express";
import { WapService } from "../services/wap.service";
import { PaginateWapServerParams } from "src/models/WapServers.Model";
const wapService = new WapService();
export class WapController {
public getServers = async (req: Request, res: Response): Promise<void> => {
try {
let data: PaginateWapServerParams = req.body as PaginateWapServerParams;
const servers = await wapService.getWapServers(data);
res.json(servers);
} catch (error) {
console.error("Error fetching wap servers:", error);
res.status(500).json({ success: false, message: "Internal Server Error" });
}
};
}