Add html, handler and db mock
This commit is contained in:
13
handler/mainpage.go
Normal file
13
handler/mainpage.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
"trikotwaschliste/database"
|
||||
)
|
||||
|
||||
func MainPage() gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
c.HTML(http.StatusAccepted, "index.html", database.DbMainpage())
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user