0.0.3 • Published 4 years ago

create-action-server v0.0.3

Weekly downloads
9
License
-
Repository
-
Last release
4 years ago
  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...