dndex/view/httpmeet.go

14 lines
226 B
Go

package view
import (
"local/dndex/storage"
"net/http"
"path"
)
func httpmeet(g storage.Graph, w http.ResponseWriter, r *http.Request) error {
namespace := path.Base(r.URL.Path)
w.Write([]byte(namespace))
return nil
}