UNPKG

country-linkify

Version:

Simple service to redirect links based on the client's country.

19 lines (18 loc) 912 B
import express = require("express"); export declare class Server { private constructor(); private static _instance; static get Instance(): Server; app: express.Express; init: (app?: express.Express) => Promise<void>; indexRoute: (req: express.Request, res: express.Response) => Promise<void>; notFoundRoute: (req: express.Request, res: express.Response) => Promise<void>; linkRoute: (req: express.Request, res: express.Response) => Promise<void>; imageRoute: (req: express.Request, res: express.Response) => Promise<void>; apiListRoute: (req: express.Request, res: express.Response) => Promise<void>; apiCheckCredentials: (req: express.Request, res: express.Response) => boolean; getClientIP: (req: express.Request) => string; getClientCountry: (req: express.Request, ip?: string) => Promise<string>; } declare const _default: Server; export default _default;