implemented database connection for blog, added blog templates, and cresated a bootstrap submodule

This commit is contained in:
rawleyIfowler
2022-02-13 14:04:31 -06:00
parent f5383f27c7
commit 2227a2473d
12 changed files with 182 additions and 20 deletions

View File

@@ -19,14 +19,15 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.Rawley Fow
import (
"github.com/gin-gonic/gin"
"gitlab.com/rawleyifowler/site-rework/utils"
"gitlab.com/rawleyifowler/site-rework/bootstrap"
)
var router *gin.Engine
var dsn string
func main() {
func main() {
router = gin.Default()
router.LoadHTMLGlob("templates/*.tmpl")
utils.InitializeRoutes(router)
bootstrap.InitializeRoutes(router)
router.Run()
}