egg-get-router-raw-path

1.0.0 • Public • Published

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;

Readme

Keywords

none

Package Sidebar

Install

npm i egg-get-router-raw-path

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.55 kB

Total Files

10

Last publish

Collaborators

  • xuezi