Remove unused HTML endpoints
This commit is contained in:
@ -9,18 +9,7 @@ import (
|
||||
"github.com/pressly/goose/v3"
|
||||
)
|
||||
|
||||
type AdminData struct {
|
||||
}
|
||||
|
||||
func (h *Handler) admin(c *gin.Context) {
|
||||
d := AdminData{}
|
||||
|
||||
c.HTML(http.StatusOK, "admin.html", d)
|
||||
}
|
||||
|
||||
func (h *Handler) clearDatabase(c *gin.Context) {
|
||||
d := AdminData{}
|
||||
|
||||
if err := goose.Reset(h.Service.DB, "schema"); err != nil {
|
||||
c.AbortWithError(http.StatusInternalServerError, err)
|
||||
}
|
||||
@ -28,20 +17,6 @@ func (h *Handler) clearDatabase(c *gin.Context) {
|
||||
if err := goose.Up(h.Service.DB, "schema"); err != nil {
|
||||
c.AbortWithError(http.StatusInternalServerError, err)
|
||||
}
|
||||
|
||||
c.HTML(http.StatusOK, "admin.html", d)
|
||||
}
|
||||
|
||||
type SettingsData struct {
|
||||
AlwaysNeededData
|
||||
}
|
||||
|
||||
func (h *Handler) settings(c *gin.Context) {
|
||||
d := SettingsData{
|
||||
c.MustGet("data").(AlwaysNeededData),
|
||||
}
|
||||
|
||||
c.HTML(http.StatusOK, "settings.html", d)
|
||||
}
|
||||
|
||||
func (h *Handler) clearBudget(c *gin.Context) {
|
||||
@ -113,5 +88,4 @@ func (h *Handler) cleanNegativeBudget(c *gin.Context) {
|
||||
break
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user