mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-06-28 12:54:49 +02:00
1574643a6a
(cherry picked from commit 20b5669269
)
15 lines
315 B
Go
15 lines
315 B
Go
// 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)
|
|
}
|