20 lines
343 B
Go
20 lines
343 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
"picgo/corelib"
|
|
)
|
|
|
|
func ProfileHandler(w http.ResponseWriter, r *http.Request) {
|
|
if r.Method == "GET" {
|
|
data := struct {
|
|
Title string
|
|
Active string
|
|
}{
|
|
Title: "Admin Dashboard",
|
|
Active: r.URL.Path,
|
|
}
|
|
corelib.TemplateHandler(w, r, data, "view/layout.html", "view/profile.html")
|
|
}
|
|
}
|