Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 442 Bytes
package gofaas
import (
"context"
"github.com/aws/aws-lambda-go/events"
)
// Dashboard returns a dashboard HTML page
func Dashboard(ctx context.Context, e events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
return events.APIGatewayProxyResponse{
Body: string("<html><body><h1>gofaas dashboard</h1></body></html>\n"),
Headers: map[string]string{
"Content-Type": "text/html",
},
StatusCode: 200,
}, nil
}