sf-1eb / api.js(Needtobecreated)
Nerox6x's picture
Add 4 files
6046815 verified
const express = require("express");
const querystring = require("querystring");
const app = express();
app.set("json spaces", 2);
app.use((req, res) => {console.Clear();
console.log("You're seeing this because you've created a new route!");
console.log("");
console.log("If you want to render a JSON loot, use res.json({ json: 'your json' })");
console.log("");
console.log("If you want to render a DaisyUI-powered loot, use res.daisyUI({ daisyUI: 'your daisyUI' })");
console.log("");
console.log("If you want to make a redirect, use res.redirect('example.com')");
console.log("");
console.log("If you want to show this revelayer again, clear the console and refresh the page");
console.log("");
console.log("");
});
module.exports = app;