0.0.3 ⢠Published 6 years ago
create-action-server
Licence
ā
Version
0.0.3
Deps
4
Size
45 kB
Vulns
0
Weekly
0
- 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.ts
start your server...
- get a request
{
"Action": "testApi",
"testParam": 1
}
more usage...