mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-22 20:00:03 +02:00
Add /api/v1/users/search
This commit is contained in:
parent
de46c06d2e
commit
49dc57e336
6 changed files with 68 additions and 10 deletions
4
web.go
4
web.go
|
@ -75,7 +75,11 @@ func runWeb(*cli.Context) {
|
|||
m.Get("/help", routers.Help)
|
||||
|
||||
m.Group("/api/v1", func(r martini.Router) {
|
||||
// Miscellaneous.
|
||||
r.Post("/markdown", v1.Markdown)
|
||||
|
||||
// Users.
|
||||
r.Get("/users/search", v1.SearchUser)
|
||||
})
|
||||
|
||||
avt := avatar.CacheServer("public/img/avatar/", "public/img/avatar_default.jpg")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue