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
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
infini "infini/functions"
|
||||
hub "hub/functions"
|
||||
"net/http"
|
||||
"text/template"
|
||||
)
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
func TestPage(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
if r.URL.Path != "/test" { // 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
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package infini
|
||||
package Hub
|
||||
|
||||
import "net/http"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Test</title>
|
||||
<link rel="stylesheet" href="css/index.css">
|
||||
<link rel="stylesheet" href="/assets/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="Mino">Mino</h1>
|
||||
|
||||
Reference in New Issue
Block a user