implemented database connection for blog, added blog templates, and cresated a bootstrap submodule
This commit is contained in:
7
main.go
7
main.go
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user