This commit is contained in:
Henrique Dias
2015-09-27 19:49:58 +01:00
parent 8f94827723
commit b1f13f1a4a
4 changed files with 24 additions and 14 deletions

View File

@@ -7,16 +7,6 @@ import (
"github.com/hacdias/staticmin/config"
)
type editor struct {
Name string
Class string
IsPost bool
Mode string
Content string
FrontMatter interface{}
Config *config.Config
}
// ServeHTTP serves the editor page
func ServeHTTP(w http.ResponseWriter, r *http.Request, c *config.Config) (int, error) {
filename := strings.Replace(r.URL.Path, "/admin/edit/", "", 1)