1.0.0 • Published 9 months ago

noffy v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

noffy

Using the nodecli-gui to Monitor Servers

Noffy NPMNoffy Github
Go NPMGo Github

Usage

import express from 'express';
import requestIp from 'request-ip';
import noffy from 'noffy';

const app = express();

app.use(requestIp.mw());
app.use(noffy());

app.post(`/post`, (req, res) => {
    res.send(`siiiii`);
});

app.get(`/`, (req, res) => {
    fetch(`http://127.0.0.1:8080/post`, {
        method: `POST`,
        body: JSON.stringify({})
    });

    res.send(`send`);
});

app.listen(8080);