Skip to content

Commit

Permalink
docs(js): mzabriskie/axios repository moved to axios/axios (#1887)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyoshiki41 authored and raphael committed Nov 23, 2018
1 parent 2e23039 commit e6e9ecb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion goagen/gen_js/doc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Package genjs provides a goa generator for a javascript client module.
The module exposes functions for calling the API actions. It relies on the
axios (https://github.com/mzabriskie/axios) javascript library to perform the actual HTTP requests.
axios (https://github.com/axios/axios) javascript library to perform the actual HTTP requests.
The generator also produces an example controller and index HTML that shows how to use the module.
The controller simply serves all the files under the "js" directory so that loading "/js" in a
Expand Down
2 changes: 1 addition & 1 deletion goagen/gen_js/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ const jsFuncsT = `{{$params := params .Action}}
{{if .Action.Payload}}// data contains the action payload (request body)
{{end}}{{if $params}}// {{join $params ", "}} {{if gt (len $params) 1}}are{{else}}is{{end}} used to build the request query string.
{{end}}// config is an optional object to be merged into the config built by the function prior to making the request.
// The content of the config object is described here: https://github.com/mzabriskie/axios#request-api
// The content of the config object is described here: https://github.com/axios/axios#request-config
// This function returns a promise which raises an error if the HTTP response is a 4xx or 5xx.
client.{{$name}} = function (path{{if .Action.Payload}}, data{{end}}{{if $params}}, {{join $params ", "}}{{end}}, config) {
var cfg = {
Expand Down

0 comments on commit e6e9ecb

Please sign in to comment.