go fmt. vet
This commit is contained in:
@@ -27,15 +27,15 @@ func init() {
|
||||
httpsrv.RegisterModule("paste", setConfig)
|
||||
|
||||
httpsrv.HttpRegister("paste", httpsrv.HttpRoutes{
|
||||
{"getRandom", "GET", "/paste/rng", getRandom},
|
||||
{"getPaste", "GET", "/paste/{id}", getPaste},
|
||||
{"getPaste", "GET", "/paste/get/{id}", getPaste},
|
||||
{"postPaste", "POST", "/paste", postPaste},
|
||||
{Name: "getRandom", Method: "GET", Pattern: "/paste/rng", HandlerFunc: getRandom},
|
||||
{Name: "getPaste", Method: "GET", Pattern: "/paste/{id}", HandlerFunc: getPaste},
|
||||
{Name: "getPaste", Method: "GET", Pattern: "/paste/get/{id}", HandlerFunc: getPaste},
|
||||
{Name: "postPaste", Method: "POST", Pattern: "/paste", HandlerFunc: postPaste},
|
||||
|
||||
{"getRandom", "GET", "/api/rng", getRandom},
|
||||
{"getPaste", "GET", "/api/{id}", getPaste},
|
||||
{"getPaste", "GET", "/api/get/{id}", getPaste},
|
||||
{"postPaste", "POST", "/api", postPaste},
|
||||
{Name: "getRandom", Method: "GET", Pattern: "/api/rng", HandlerFunc: getRandom},
|
||||
{Name: "getPaste", Method: "GET", Pattern: "/api/{id}", HandlerFunc: getPaste},
|
||||
{Name: "getPaste", Method: "GET", Pattern: "/api/get/{id}", HandlerFunc: getPaste},
|
||||
{Name: "postPaste", Method: "POST", Pattern: "/api", HandlerFunc: postPaste},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import "sour.is/x/toolbox/httpsrv"
|
||||
|
||||
func init() {
|
||||
httpsrv.AssetRegister("paste", httpsrv.AssetRoutes{
|
||||
{"Assets", "/", httpsrv.FsHtml5(assetFS())},
|
||||
{Name: "Assets", Path: "/", HandlerFunc: httpsrv.FsHtml5(assetFS())},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user