fleshed out where documentation is stored.
This commit is contained in:
@@ -1,27 +1 @@
|
||||
/*
|
||||
Package vain implements a vanity service for use by the the go tool
|
||||
|
||||
From the documentation for the go tool, it searches for the following header
|
||||
when searching for packages:
|
||||
|
||||
<meta name="go-import" content="import-prefix vcs repo-root">
|
||||
|
||||
this is simply a service for aggregating a collection of prefix, vcs, and
|
||||
repo-root tuples, and serving the appropriate header over http.
|
||||
|
||||
API
|
||||
|
||||
In order to add a new package POST a json object to the following route:
|
||||
|
||||
POST /
|
||||
|
||||
A sample json object:
|
||||
|
||||
{
|
||||
"vcs": "mercurial",
|
||||
"repo": "https://s.mcquay.me/sm/vain"
|
||||
}
|
||||
|
||||
"repo" is required; leaving off the "vcs" member defaults to "git".
|
||||
*/
|
||||
package vain
|
||||
|
||||
Reference in New Issue
Block a user