You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web
Nick e1aca7cbdd
Deduplicate findReadmeFile() (#22177)
This code was copy-pasted at some point. Revisit it to reunify it.

~~Doing that then encouraged simplifying the types of a couple of
related functions.~~

~~As a follow-up, move two helper functions, `isReadmeFile()` and
`isReadmeFileExtension()`, intimately tied to `findReadmeFile()`, in as
package-private.~~

Signed-off-by: Nick Guenther <nick.guenther@polymtl.ca>
2 years ago
..
admin Map OIDC groups to Orgs/Teams (#21441) 2 years ago
auth Map OIDC groups to Orgs/Teams (#21441) 2 years ago
events Implement FSFE REUSE for golang files (#21840) 2 years ago
explore Remove ONLY_SHOW_RELEVANT_REPOS setting (#21962) 2 years ago
feed Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
healthcheck Implement FSFE REUSE for golang files (#21840) 2 years ago
misc Implement FSFE REUSE for golang files (#21840) 2 years ago
org Preview images for Issue cards in Project Board view (#22112) 2 years ago
repo Deduplicate findReadmeFile() (#22177) 2 years ago
shared Add Cargo package registry (#21888) 2 years ago
user Fix improper HTMLURL usages in Go code (#22839) 2 years ago
auth.go Implement FSFE REUSE for golang files (#21840) 2 years ago
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Implement FSFE REUSE for golang files (#21840) 2 years ago
goget.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
home.go Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics.go Implement FSFE REUSE for golang files (#21840) 2 years ago
nodeinfo.go Implement FSFE REUSE for golang files (#21840) 2 years ago
swagger_json.go Implement FSFE REUSE for golang files (#21840) 2 years ago
web.go Map OIDC groups to Orgs/Teams (#21441) 2 years ago
webfinger.go Implement FSFE REUSE for golang files (#21840) 2 years ago