Skip to content

Use hapi with the serverless framework. Works with AWS lambda, Azure functions and Google Cloud Platform functions.

License

Notifications You must be signed in to change notification settings

drager/serverless-hapi

 
 

Repository files navigation

serverless-hapi

Use hapi with the serverless framework.

Works with Amazon Lambda and Azure Functions.

Usage

A simple usage example:

import * as hapi from 'hapi'
import {serverlessHapi} from 'serverless-hapi'

const app = () => {
  const server = new hapi.Server()
  server.connection()

  server.route({
    method: 'GET',
    path: '/hello',
    handler: (_request, reply) => reply({message: 'Hello from hapi!'}),
  })

  return server
}

export const hello = serverlessHapi(app())

For more examples, check out the example folder.

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

Use hapi with the serverless framework. Works with AWS lambda, Azure functions and Google Cloud Platform functions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •