mirror of https://sc.cryxtal.org/crystal/forgejo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
336 B
19 lines
336 B
// Copyright 2023 The Forgejo Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1
|
|
|
|
import (
|
|
gocontext "context"
|
|
|
|
"code.gitea.io/gitea/modules/web"
|
|
)
|
|
|
|
func Routes(ctx gocontext.Context) *web.Route {
|
|
m := web.NewRoute()
|
|
forgejo := NewForgejo()
|
|
m.Get("", Root)
|
|
m.Get("/version", forgejo.GetVersion)
|
|
return m
|
|
}
|