feat(webui): implement state versions list
This commit is contained in:
parent
80958d5b0f
commit
26e10a9399
12 changed files with 195 additions and 10 deletions
|
@ -16,7 +16,7 @@ func handleStatesGET(db *database.DB) http.Handler {
|
|||
States []model.State
|
||||
}
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
states, err := db.LoadStatesByPath()
|
||||
states, err := db.LoadStates()
|
||||
if err != nil {
|
||||
errorResponse(w, http.StatusInternalServerError, err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue