Show embeds in type documentation

This commit is contained in:
2019-11-18 14:55:12 +09:00
parent cafb43aa17
commit ab81556651
9 changed files with 36 additions and 24 deletions

View File

@ -16,7 +16,7 @@ type Type struct {
// Endpoint returns the REST endpoint for that type.
func (typ *Type) Endpoint() string {
return "/api/" + strings.ToLower(typ.Name) + "/"
return "/api/" + strings.ToLower(typ.Name)
}
// GitHubLink returns link to display the type in GitHub.