mirror of https://github.com/186526/handlers.js
18 lines
291 B
Markdown
18 lines
291 B
Markdown
|
# Handlers.js
|
||
|
|
||
|
> Handlers.js is a unified and lightweight web application framework for multiple platforms.
|
||
|
|
||
|
```ts
|
||
|
import handlerJS from "./";
|
||
|
|
||
|
const App = new handlerJS();
|
||
|
|
||
|
App.binding(
|
||
|
"/",
|
||
|
App.create("ANY", async () => "Hello World!")
|
||
|
);
|
||
|
|
||
|
App.useMappingAdapter();
|
||
|
App.listen(8080);
|
||
|
```
|