yeetdesigns-router

0.0.9 • Public • Published

YeetDesigns EXPRESS GET ROUTER

npmnpm2

About

this npm package uses

versions of npm packages

- quick.db v9.0.5

- express v4.18.1

- ejs v3.1.8

- pug v3.0.2


LINKS


Example

How to use

Main File
const express = require("express")
const site = express()
const {Utils} = require("yeetdesigns-router")



const server = new Utils({
    app: site
})

server.load('./routes').then(() => {
    site.listen(process.env.PORT || 3000, () => {
        console.log('Listening the webserver.')
    })
})
Routes/Home.js
const {Builder} = require("yeetdesigns-router")

module.exports = {
    data: new Builder()
    .setPath('/')
    .setExplain('Home Page'),
    execute(req, res, next, db) {
res.send("Hello World!")
    }
}

Credits

Package Sidebar

Install

npm i yeetdesigns-router

Weekly Downloads

1

Version

0.0.9

License

MIT

Unpacked Size

13.9 kB

Total Files

11

Last publish

Collaborators

  • ytygrunn1ngark456