You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
377 B

package main
import (
"net/http"
)
type Route struct {
Name string
Method string
Pattern string
HandlerFunc http.HandlerFunc
}
type Routes []Route
var routes = Routes{
Route{
"Index",
"GET",
"/",
Index,
},
Route{
"ImageShow",
"GET",
"/images/{imageName}",
ImageShow,
},
Route{
"NewImage",
"POST",
"/image",
NewImage,
},
}