OhMyDitzzy
Add auto domain in api/data
67d5038
raw
history blame contribute delete
353 Bytes
const handler = {
name: "Greet user",
description: "Greet the user",
method: "GET",
category: [],
alias: ["data"],
exec: async (req, res) => {
res.json({
status: 200,
message: `Welcome to DitzzyAPI, Lets get started by visit our documentation on: ${req.protocol}://${req.hostname}/docs`
})
}
}
export default handler