0.0.3 • Published 6 years ago
create-action-server v0.0.3
- create
app.ts👇
import * as createApp from 'create-app-ts'
const app = createApp()
app.listen(23333)- mkdir
/api
then you can add your first action api to /api like test.ts👇
.
├── api
│  └── testApi.ts
└── app.tsstart your server...
- get a request
{
"Action": "testApi",
"testParam": 1
}more usage...