如何获取 NestJS 正在处理的页面的完整 URL?(例如http://localhost:3000/hoge)
//
// If you implement it with express, it looks like this.
// e.g. http://localhost:3000/hoge
//
function getFullUrl(req: express.Request) {
return `${req.protocol}://${req.get('Host')}${req.originalUrl}`;
}
Run Code Online (Sandbox Code Playgroud) nestjs ×1