mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-30 05:18:44 +01:00
SAVEPOINT
This commit is contained in:
@@ -2,7 +2,9 @@ package examples
|
||||
|
||||
import (
|
||||
"log"
|
||||
"gitlab.com/lrodham/tuu"
|
||||
|
||||
"github.com/gin-gonic/gin/render"
|
||||
"github.com/lukerodham/tuu"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -12,8 +14,8 @@ func main() {
|
||||
ctx.Set("template_data", "some value")
|
||||
|
||||
return ctx.Render(200, render.HTML("template_name.html"))
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
router.POST("/login", func(ctx tuu.Context) error {
|
||||
username := ctx.Param("username")
|
||||
password := ctx.Param("password")
|
||||
@@ -27,4 +29,4 @@ func main() {
|
||||
if err := app.Serve(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user