Skip to content

Commit

Permalink
Update BuildInput struct
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Jan 5, 2024
1 parent 4a6566a commit b57d52a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/esm_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (

type BuildInput struct {
Source string `json:"source"`
Code string `json:"code"`
Loader string `json:"loader"`
Deps map[string]string `json:"dependencies"`
Types string `json:"types"`
Expand All @@ -41,9 +40,6 @@ func apiHandler() rex.Handle {
if err != nil {
return rex.Err(400, "require valid json body")
}
if input.Source == "" && input.Code != "" {
input.Source = input.Code
}
if input.Source == "" {
return rex.Err(400, "source is required")
}
Expand Down

0 comments on commit b57d52a

Please sign in to comment.