You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
326 B
Go
18 lines
326 B
Go
package bugbox
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
"strings"
|
|
)
|
|
|
|
// GetEnclosure retrieves the requested enclosure
|
|
func GetEnclosure(name string) string {
|
|
return name
|
|
}
|
|
|
|
func BugBoxServer(w http.ResponseWriter, r *http.Request) {
|
|
enclosure := strings.TrimPrefix(r.URL.Path, "/enclosure/")
|
|
fmt.Fprint(w, GetEnclosure(enclosure))
|
|
}
|