mirror of
https://github.com/gmemstr/pogo.git
synced 2024-09-20 01:31:09 +01:00
Remove GET from login route
Will be replaced by vue frontend
This commit is contained in:
parent
04cabdb84d
commit
8fcbd02fc4
|
@ -75,7 +75,7 @@ func Init() *mux.Router {
|
||||||
|
|
||||||
r.Handle("/login", Handle(
|
r.Handle("/login", Handle(
|
||||||
loginHandler(),
|
loginHandler(),
|
||||||
)).Methods("GET", "POST")
|
)).Methods("POST")
|
||||||
|
|
||||||
r.Handle("/admin/publish", Handle(
|
r.Handle("/admin/publish", Handle(
|
||||||
auth.RequireAuthorization(0),
|
auth.RequireAuthorization(0),
|
||||||
|
@ -141,11 +141,6 @@ func loginHandler() common.Handler {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.Method == "GET" {
|
|
||||||
w.Header().Set("Content-Type", "text/html")
|
|
||||||
return common.ReadAndServeFile("assets/web/login.html", w)
|
|
||||||
}
|
|
||||||
|
|
||||||
err = r.ParseForm()
|
err = r.ParseForm()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &common.HTTPError{
|
return &common.HTTPError{
|
||||||
|
|
Loading…
Reference in a new issue