You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: routes.go
    path of file: ./repos/ipsw/api/server/routes/daemon
    
    the code of the file until where you have to start completion: // Package daemon provides the daemon routes
package daemon

import (
	"net/http"
	"runtime"


    
func AddRoutes(rg *gin.RouterGroup) {
	// swagger:route HEAD /_ping Daemon headDaemonPing
	//
	// Ping
	//
	// This will return if 200 the daemon is running.
	//
	//     Responses:
	//       200:
	//       	description: "no error"
	//   		schema:
	//     			type: "string"
	//     			example: "(empty)"
	rg.HEAD("/_ping", pingHandler)
	// swagger:route GET /_ping Daemon getDaemonPing
	//
	// Ping
	//
	// This will return "OK" if the daemon is running.
	//
	//     Responses:
	//       200:
	//       	description: "no error"
	//   		schema:
	//     			type: "string"
	//     			example: "OK"
	rg.GET("/_ping", pingHandler)
	// swagger:route GET /version Daemon getDaemonVersion
	//
	// Version
	//
	// This will return the daemon version info.
	//
	//     Responses:
	//       200: versionResponse
	rg.GET("/version", func(c *gin.Context) {
		c.JSON(http.StatusOK, versionResponse{types.Version{
			APIVersion:     api.DefaultVersion,
			OSType:         runtime.GOOS,
			BuilderVersion: types.BuildVersion,
		}})
	})
}