Skip to content

Commit

Permalink
fix server bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yohamta committed Sep 10, 2023
1 parent 94f9765 commit 84bcb19
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (cfg *Config) GetAPIBaseURL() string {
if isHTTPS {
schema = "https"
}
return fmt.Sprintf("%s://%s:%d%s", schema, cfg.Host, cfg.Port, "/handlers/v1/")
return fmt.Sprintf("%s://%s:%d%s", schema, cfg.Host, cfg.Port, "/api/v1/")
}

func loadEnvs() {
Expand Down
2 changes: 1 addition & 1 deletion service/frontend/middleware/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func Setup(opts *Options) {
func prefixChecker(next http.Handler) http.Handler {
return http.HandlerFunc(
func(w http.ResponseWriter, r *http.Request) {
if strings.HasPrefix(r.URL.Path, "/handlers") {
if strings.HasPrefix(r.URL.Path, "/api") {
next.ServeHTTP(w, r)
} else {
defaultHandler.ServeHTTP(w, r)
Expand Down
2 changes: 1 addition & 1 deletion service/frontend/restapi/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/frontend/restapi/embedded_spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion service/frontend/restapi/operations/dagu_api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions service/frontend/restapi/server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 84bcb19

Please sign in to comment.