upgrade go
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
infini "infini/functions"
|
||||
hub "hub/functions"
|
||||
"net/http"
|
||||
"text/template"
|
||||
)
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
func MainPage(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
if r.URL.Path != "/" { // met l'url de la page
|
||||
infini.NotFound(w, r) // si l'url n'est pas bonne, renvoie sur la page d'erreur 404
|
||||
hub.NotFound(w, r) // si l'url n'est pas bonne, renvoie sur la page d'erreur 404
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user