mirror of
https://github.com/gmemstr/pogo.git
synced 2024-09-19 17:21:10 +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(
|
||||
loginHandler(),
|
||||
)).Methods("GET", "POST")
|
||||
)).Methods("POST")
|
||||
|
||||
r.Handle("/admin/publish", Handle(
|
||||
auth.RequireAuthorization(0),
|
||||
|
@ -141,11 +141,6 @@ func loginHandler() common.Handler {
|
|||
return nil
|
||||
}
|
||||
|
||||
if r.Method == "GET" {
|
||||
w.Header().Set("Content-Type", "text/html")
|
||||
return common.ReadAndServeFile("assets/web/login.html", w)
|
||||
}
|
||||
|
||||
err = r.ParseForm()
|
||||
if err != nil {
|
||||
return &common.HTTPError{
|
||||
|
|
Loading…
Reference in a new issue