heanxu / create-action-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  1. create app.ts πŸ‘‡
import * as createApp from "create-action-server";

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...

About


Languages

Language:TypeScript 100.0%