mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-07 05:42:42 +00:00
Add /api route to show API version #116
This commit is contained in:
@@ -16,6 +16,10 @@ func Router(c *ctx.AptlyContext) http.Handler {
|
||||
router.Use(gin.ErrorLogger())
|
||||
|
||||
root := router.Group("/api")
|
||||
{
|
||||
root.GET("/", apiVersion)
|
||||
}
|
||||
|
||||
{
|
||||
root.GET("/repos", apiReposList)
|
||||
root.POST("/repos", apiReposCreate)
|
||||
|
||||
Reference in New Issue
Block a user