Added templating, versioning, middleware, etc
This commit is contained in:
1 parent
cd7003223a
commit
92d8e5fa09
11 files changed
+82
-2
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/flamego/template"
|
||||
)
|
||||
|
||||
func GetDashboard(t template.Template, data template.Data) {
|
||||
data["title"] = "Dashboard"
|
||||
t.HTML(http.StatusOK, "index/dashboard")
|
||||
}
|
||||
Reference in new issue
Block a user