Add settings page linking to clean and clear
This commit is contained in:
@ -34,6 +34,18 @@ func (h *Handler) clearDatabase(c *gin.Context) {
|
||||
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) {
|
||||
budgetID := c.Param("budgetid")
|
||||
budgetUUID, err := uuid.Parse(budgetID)
|
||||
|
Reference in New Issue
Block a user