Skip to content

Commit

Permalink
update mock
Browse files Browse the repository at this point in the history
  • Loading branch information
arekouzounian committed Jun 24, 2024
1 parent 7d58b16 commit 0d15f08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/mock-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ package main
import (
"encoding/json"
"fmt"
v2 "github.com/runner-x/runner-x/server/api/v2"
"log"
"net/http"
"time"

v2 "github.com/runner-x/runner-x/server/api/v2"

"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
coderunner "github.com/runner-x/runner-x/engine/coderunner/v2"
Expand Down Expand Up @@ -41,7 +42,7 @@ func runHandler(w http.ResponseWriter, r *http.Request) {
output := v2.RunResponse{
Stdout: "hello world",
Stderr: "",
Error: nil,
Error: "",
}

err := json.NewEncoder(w).Encode(output)
Expand Down

0 comments on commit 0d15f08

Please sign in to comment.