- create
app.ts
π
import * as createApp from "create-action-server";
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.ts
start your server...
- get a request
{
"Action": "testApi",
"testParam": 1
}
more usage...