2.0.3 • Published 2 years ago

@tomrpc/mount v2.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@tomrpc/mount

import mount from '@tomrpc/mount';


const rpc = createServer({
    base: import.meta.url,
    beforeOne: function (ctx: any, key: string) {
    console.log(ctx.path);
    console.log(ctx.method);
    console.log('beforeOne key=' + key);
  },
});

rpc.base = import.meta.url;
mount(rpc, './fn');

rpc.listen(3000);
2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago