Compare commits
No commits in common. "2f35c6e792e7e5a4c26b556e91ff3e2402a71b1f" and "6edd141d63e3ba430bd4901bc7548f1d85e82600" have entirely different histories.
2f35c6e792
...
6edd141d63
2 changed files with 0 additions and 15 deletions
5
main.go
5
main.go
|
|
@ -6,7 +6,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"embed"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
|
@ -19,9 +18,6 @@ import (
|
||||||
"github.com/julienschmidt/httprouter"
|
"github.com/julienschmidt/httprouter"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed all:templates
|
|
||||||
var resources embed.FS
|
|
||||||
|
|
||||||
// The main function
|
// The main function
|
||||||
func main() {
|
func main() {
|
||||||
app := core.New()
|
app := core.New()
|
||||||
|
|
@ -47,7 +43,6 @@ func main() {
|
||||||
app.SetGormConfig(config.GetGormConfig())
|
app.SetGormConfig(config.GetGormConfig())
|
||||||
app.SetCacheConfig(config.GetCacheConfig())
|
app.SetCacheConfig(config.GetCacheConfig())
|
||||||
app.Bootstrap()
|
app.Bootstrap()
|
||||||
app.RegisterTemplates(resources)
|
|
||||||
registerGlobalHooks()
|
registerGlobalHooks()
|
||||||
registerRoutes()
|
registerRoutes()
|
||||||
registerEvents()
|
registerEvents()
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
{{template "head" "Sample"}}
|
|
||||||
<body>
|
|
||||||
{{template "title" .TheTitle}}
|
|
||||||
<div class="section">
|
|
||||||
Sample page!
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue