Add migrations
This commit is contained in:
@@ -12,3 +12,13 @@ func MainPage(pool *pgxpool.Pool) gin.HandlerFunc {
|
||||
c.HTML(http.StatusAccepted, "index.html", database.DbMainpage(pool))
|
||||
}
|
||||
}
|
||||
|
||||
func UploadName(pool *pgxpool.Pool) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
selectedID := c.PostForm("names")
|
||||
washID := c.PostForm("washid")
|
||||
|
||||
database.UploadName(pool, selectedID, washID)
|
||||
c.Redirect(302, "/")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user