Some linting fixes and example improvements
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
lib/
|
||||
node_modules/
|
||||
node_modules/
|
||||
example/
|
||||
rollup.config.js
|
@@ -14,8 +14,13 @@ npm install @dm1sh/eserver
|
||||
|
||||
```typescript
|
||||
import eServer from "@dm1sh/eserver"
|
||||
import cors from "cors"
|
||||
|
||||
const app = new eServer()
|
||||
|
||||
app.use(cors())
|
||||
|
||||
app.route("/", (req, res) => res.send("Welcome home"))
|
||||
|
||||
app.listen(5000)
|
||||
```
|
||||
|
10
example/index.js
Normal file
10
example/index.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const eServer = require("@dm1sh/eserver")
|
||||
// import cors from "cors"
|
||||
|
||||
const app = new eServer()
|
||||
|
||||
// app.use(cors())
|
||||
|
||||
app.route("/", (req, res) => res.send("Welcome home"))
|
||||
|
||||
app.listen(5000)
|
Reference in New Issue
Block a user