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.
15 lines
315 B
Go
15 lines
315 B
Go
1 year ago
|
// Copyright The Forgejo Authors.
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
package v1
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func Root(w http.ResponseWriter, r *http.Request) {
|
||
|
// https://www.rfc-editor.org/rfc/rfc8631
|
||
|
w.Header().Set("Link", "</assets/forgejo/api.v1.yml>; rel=\"service-desc\"")
|
||
|
w.WriteHeader(http.StatusNoContent)
|
||
|
}
|