File size: 353 Bytes
6d9f36a
 
 
 
 
 
 
 
 
67d5038
6d9f36a
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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