Form validation
This commit is contained in:
@ -10,7 +10,7 @@ import (
|
||||
|
||||
const (
|
||||
APPHOST string = "127.0.0.1"
|
||||
APPPORT int = 8000
|
||||
APPPORT int = 8080
|
||||
STATIC_PATH string = "./static"
|
||||
)
|
||||
|
||||
@ -27,6 +27,7 @@ func initRouter() *gin.Engine {
|
||||
interactiveRouter.GET("", handlers.Interactive)
|
||||
interactiveRouter.GET("/swap-content", handlers.InteractiveSwapContent)
|
||||
interactiveRouter.GET("/filter-cat-breeds", handlers.FilterCatBreeds)
|
||||
interactiveRouter.POST("/validate-form", handlers.ValidateForm)
|
||||
}
|
||||
|
||||
router.Use(static.Serve("/static", static.LocalFile(STATIC_PATH, false)))
|
||||
|
||||
Reference in New Issue
Block a user