npm.io
0.0.3 • Published 6 years ago

create-action-server

Licence
—
Version
0.0.3
Deps
4
Size
45 kB
Vulns
0
Weekly
0
  1. create app.ts
  import * as createApp  from 'create-app-ts'

  const app = createApp()

  app.listen(23333)
  1. mkdir /api

then you can add your first action api to /api like test.ts

.
ā”œā”€ā”€ api
│   └── testApi.ts
└── app.ts

start your server...

  1. get a request
  {
    "Action": "testApi",
    "testParam": 1
  }

more usage...