rename handler files

This commit is contained in:
Lakhan Samani
2021-07-23 14:22:46 +05:30
parent efce3337ec
commit 58b0dced7a
5 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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)
}
}