summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/api/server.go5
-rw-r--r--internal/storage/db.go12
2 files changed, 0 insertions, 17 deletions
diff --git a/internal/api/server.go b/internal/api/server.go
index 11c9c15..1d87b3f 100644
--- a/internal/api/server.go
+++ b/internal/api/server.go
@@ -103,11 +103,6 @@ func (s *Server) routes() {
s.mux.HandleFunc("GET /api/executions/{id}/log", s.handleGetExecutionLog)
s.mux.HandleFunc("GET /api/tasks/{id}/logs/stream", s.handleStreamTaskLogs)
s.mux.HandleFunc("GET /api/executions/{id}/logs/stream", s.handleStreamLogs)
- s.mux.HandleFunc("GET /api/templates", s.handleListTemplates)
- s.mux.HandleFunc("POST /api/templates", s.handleCreateTemplate)
- s.mux.HandleFunc("GET /api/templates/{id}", s.handleGetTemplate)
- s.mux.HandleFunc("PUT /api/templates/{id}", s.handleUpdateTemplate)
- s.mux.HandleFunc("DELETE /api/templates/{id}", s.handleDeleteTemplate)
s.mux.HandleFunc("POST /api/tasks/{id}/answer", s.handleAnswerQuestion)
s.mux.HandleFunc("POST /api/tasks/{id}/resume", s.handleResumeTimedOutTask)
s.mux.HandleFunc("POST /api/scripts/{name}", s.handleScript)
diff --git a/internal/storage/db.go b/internal/storage/db.go
index 0a4f7a5..fb754f5 100644
--- a/internal/storage/db.go
+++ b/internal/storage/db.go
@@ -68,18 +68,6 @@ func (s *DB) migrate() error {
CREATE INDEX IF NOT EXISTS idx_tasks_state ON tasks(state);
CREATE INDEX IF NOT EXISTS idx_executions_status ON executions(status);
CREATE INDEX IF NOT EXISTS idx_executions_task_id ON executions(task_id);
-
- CREATE TABLE IF NOT EXISTS templates (
- id TEXT PRIMARY KEY,
- name TEXT NOT NULL,
- description TEXT,
- config_json TEXT NOT NULL DEFAULT '{}',
- timeout TEXT,
- priority TEXT NOT NULL DEFAULT 'normal',
- tags_json TEXT NOT NULL DEFAULT '[]',
- created_at DATETIME NOT NULL,
- updated_at DATETIME NOT NULL
- );
`
if _, err := s.db.Exec(schema); err != nil {
return err