You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							26 lines
						
					
					
						
							407 B
						
					
					
				
			
		
		
	
	
							26 lines
						
					
					
						
							407 B
						
					
					
				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(3000, function (err) {
 | 
						|
  if (err) {
 | 
						|
    throw err
 | 
						|
  }
 | 
						|
})
 |