1.0.0 • Published 5 years ago

egg-get-router-raw-path v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

EGG-GET-ROUTER-RAW-PATH

在请求过程中获取当前请求的原始路由路径

installation

npm i egg-get-router-raw-path [--save]

usage

plugin.js

export.routeRawPath = {
    enable: true,
    package: 'egg-get-router-raw-path'
}

get router raw path from context in controller

const routerRawPath = ctx.routerRawPath;