feature: move docs
This commit is contained in:
@@ -309,7 +309,7 @@ func (s *Server) documentRecordForRequestPath(r *http.Request, requestPath strin
|
||||
if !strings.HasSuffix(strings.ToLower(clean), ".md") {
|
||||
clean += ".md"
|
||||
}
|
||||
return s.repository.GetDocumentByPath(r.Context(), clean)
|
||||
return s.repository.GetDocumentByPathOrAlias(r.Context(), clean)
|
||||
}
|
||||
|
||||
func (s *Server) canReadDocumentRecord(r *http.Request, record docs.DocumentRecord) (bool, error) {
|
||||
|
||||
Reference in New Issue
Block a user