Adds a static website
This commit is contained in:
@@ -74,5 +74,7 @@ func (a *appData) buildRouter() http.Handler {
|
||||
}
|
||||
})).Methods("GET")
|
||||
|
||||
router.PathPrefix("/").Handler(http.FileServer(http.Dir("static")))
|
||||
|
||||
return router
|
||||
}
|
||||
|
||||
0
static/css/.gitkeep
Normal file
0
static/css/.gitkeep
Normal file
0
static/html/.gitkeep
Normal file
0
static/html/.gitkeep
Normal file
8
static/index.html
Normal file
8
static/index.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Hello World !</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello World!</h1>
|
||||
</body>
|
||||
</html>
|
||||
0
static/js/.gitkeep
Normal file
0
static/js/.gitkeep
Normal file
Reference in New Issue
Block a user