MCPcopy Index your code
hub / github.com/TruthHun/BookStack / completeLink

Method completeLink

controllers/api/BaseController.go:243–248  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

241}
242
243func (this *BaseController) completeLink(path string) string {
244 if path == "" {
245 return ""
246 }
247 return utils.JoinURL(models.GetAPIStaticDomain(), strings.ReplaceAll(path, "\\", "/"))
248}
249
250// 根据标识查询书籍id,标识可以是数字也可以是字符串
251func (this *BaseController) getBookIdByIdentify(identify string) (bookId int) {

Callers 15

ChangeAvatarMethod · 0.80
loginMethod · 0.80
getFansOrFollowMethod · 0.80
UserInfoMethod · 0.80
UserReleaseBookMethod · 0.80
SearchBookMethod · 0.80
CategoriesMethod · 0.80
BookInfoMethod · 0.80
BookListsMethod · 0.80
BookListsByCidsMethod · 0.80
handleReleaseV1Method · 0.80
BannersMethod · 0.80

Calls 2

JoinURLFunction · 0.92
GetAPIStaticDomainFunction · 0.92

Tested by

no test coverage detected