mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-09 18:33:36 +02:00
simplify task package implementation
This commit is contained in:
@@ -52,7 +52,7 @@ func List(w http.ResponseWriter, r *http.Request) {
|
||||
case ListHomepageConfig:
|
||||
U.RespondJSON(w, r, config.HomepageConfig())
|
||||
case ListTasks:
|
||||
U.RespondJSON(w, r, task.DebugTaskMap())
|
||||
U.RespondJSON(w, r, task.DebugTaskList())
|
||||
default:
|
||||
U.HandleErr(w, r, U.ErrInvalidKey("what"), http.StatusBadRequest)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user