Showing content from https://github.com/rs/cors/raw/master/examples/gin/server.go below:
package main import ( "net/http" "github.com/gin-gonic/gin" cors "github.com/rs/cors/wrapper/gin" ) func main() { router := gin.Default() router.Use(cors.Default()) router.GET("/", func(context *gin.Context) { context.JSON(http.StatusOK, gin.H{"hello": "world"}) }) router.Run(":8080") }
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4