authorizer/server/handlers/playgroundHandler.go
Lakhan Samani 9b8658f666 add google login
- refactor resolvers
- fix signup method typos

Resolves #17
2021-07-17 21:59:50 +05:30

16 lines
306 B
Go

package handlers
import (
"github.com/99designs/gqlgen/graphql/playground"
"github.com/gin-gonic/gin"
)
// Defining the Playground handler
func PlaygroundHandler() gin.HandlerFunc {
h := playground.Handler("GraphQL", "/graphql")
return func(c *gin.Context) {
h.ServeHTTP(c.Writer, c.Request)
}
}