Comparing version 1.0.4 to 1.0.5
@@ -1,1 +0,7 @@ | ||
./dist/demo/startApi.js | ||
'use strict'; | ||
module.exports = class { | ||
async $hello(body) { | ||
return 'hello world'; | ||
} | ||
} |
@@ -1,1 +0,14 @@ | ||
./dist/index.js | ||
const Koa = require('koa'); | ||
const app = new Koa(); | ||
const bodyParser = require('koa-bodyparser'); | ||
const rtApi = require('koa-rtapi'); | ||
const map = [ | ||
{ path: '/demo/', dir: '/demo/' } | ||
] | ||
app.use(bodyParser()) | ||
.use(rtApi(map)) | ||
.listen(1996); | ||
console.log('started http://127.0.0.1:1996'); |
{ | ||
"name": "koa-rtapi", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "koa api in rtworld company", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2740
72