mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-07 20:28:20 +02:00
17 lines
293 B
Go
17 lines
293 B
Go
|
// Copyright 2023 The Forgejo Authors. All rights reserved.
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
package v1
|
||
|
|
||
|
import (
|
||
|
"code.gitea.io/gitea/modules/web"
|
||
|
)
|
||
|
|
||
|
func Routes() *web.Route {
|
||
|
m := web.NewRoute()
|
||
|
forgejo := NewForgejo()
|
||
|
m.Get("", Root)
|
||
|
m.Get("/version", forgejo.GetVersion)
|
||
|
return m
|
||
|
}
|