%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/api.rezakurnia.com/zh-router/node_modules/fastify/examples/
Upload File :
Create Path :
Current File : /home2/rezakur1/api.rezakurnia.com/zh-router/node_modules/fastify/examples/use-plugin.js

'use strict'

const fastify = require('../fastify')({ logger: true })

const opts = {
  schema: {
    response: {
      '2xx': {
        type: 'object',
        properties: {
          hello: {
            type: 'string'
          }
        }
      }
    }
  }
}
fastify.register(require('./plugin'), opts, function (err) {
  if (err) {
    throw err
  }
})

fastify.listen({ port: 3000 }, function (err) {
  if (err) {
    throw err
  }
})

Zerion Mini Shell 1.0