【文件属性】:
文件名称:damless:简化您的node.js Web服务器
文件大小:851KB
文件格式:ZIP
更新时间:2021-05-02 05:19:43
nodejs api services json compression
少夫人
DamLess帮助您创建一个NodeJS流api(带有http块)。
像gulp脚本一样开发http服务器。
const DamLess = require ( "damless" ) ;
const damless = new DamLess ( ) ;
damless
. config ( { http : { port : 3000 } } )
. inject ( "info" , "./services/info" )
. inject ( "user" , "./services/user" )
. get ( "/helloworld" , "info" , "helloworld" )
. post ( "/user" , "user" , "insertOne" )
. start ( ) ;
class In