hapi-routes:Hapi插件,用于注册路线

时间:2021-05-14 00:15:06
【文件属性】:
文件名称:hapi-routes:Hapi插件,用于注册路线
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-14 00:15:06
plugin routes hapijs hapi-plugin JavaScript 哈皮航线 hapi插件,用于注册路线 什么 Hapi Routes允许您将所有路由逻辑放在指定文件夹中的不同文件中。 这使您可以清楚地了解自己的路线。 如何 server.js const server = new Hapi . server ( ) ; await server . register ( { plugin : require ( 'hapi-routes' ) , options : { dir : ` ${ __dirname } /test/routes/*` , } , } ) ; options采用以下参数: { dir: String, // (Required): Relative path where to search for route files. Requ
【文件预览】:
hapi-routes-master
----.travis.yml(47B)
----package.json(863B)
----test()
--------index.js(3KB)
--------routes()
----LICENSE(1KB)
----.gitignore(606B)
----lib()
--------index.js(890B)
----README.md(1KB)

网友评论