mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
Adding autogenerated router file
This commit is contained in:
parent
77e01f8e7c
commit
30be51517e
3 changed files with 116 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
commentsRouter_*.go
|
||||
tests/**/commentsRouter_*.go
|
||||
lastupdate.tmp
|
||||
gosonic
|
||||
iTunes Music Library.xml
|
||||
|
|
114
routers/commentsRouter_github_com_deluan_gosonic_controllers.go
Normal file
114
routers/commentsRouter_github_com_deluan_gosonic_controllers.go
Normal file
|
@ -0,0 +1,114 @@
|
|||
package routers
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:GetLicenseController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:GetLicenseController"],
|
||||
beego.ControllerComments{
|
||||
"Get",
|
||||
`/rest/getLicense.view`,
|
||||
[]string{"get"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:GetMusicFoldersController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:GetMusicFoldersController"],
|
||||
beego.ControllerComments{
|
||||
"Get",
|
||||
`/rest/getMusicFolders.view`,
|
||||
[]string{"get"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:ObjectController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:ObjectController"],
|
||||
beego.ControllerComments{
|
||||
"Post",
|
||||
`/`,
|
||||
[]string{"post"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:ObjectController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:ObjectController"],
|
||||
beego.ControllerComments{
|
||||
"Get",
|
||||
`/:objectId`,
|
||||
[]string{"get"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:ObjectController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:ObjectController"],
|
||||
beego.ControllerComments{
|
||||
"GetAll",
|
||||
`/`,
|
||||
[]string{"get"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:ObjectController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:ObjectController"],
|
||||
beego.ControllerComments{
|
||||
"Put",
|
||||
`/:objectId`,
|
||||
[]string{"put"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:ObjectController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:ObjectController"],
|
||||
beego.ControllerComments{
|
||||
"Delete",
|
||||
`/:objectId`,
|
||||
[]string{"delete"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:PingController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:PingController"],
|
||||
beego.ControllerComments{
|
||||
"Get",
|
||||
`/rest/ping.view`,
|
||||
[]string{"get"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"],
|
||||
beego.ControllerComments{
|
||||
"Post",
|
||||
`/`,
|
||||
[]string{"post"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"],
|
||||
beego.ControllerComments{
|
||||
"GetAll",
|
||||
`/`,
|
||||
[]string{"get"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"],
|
||||
beego.ControllerComments{
|
||||
"Get",
|
||||
`/:uid`,
|
||||
[]string{"get"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"],
|
||||
beego.ControllerComments{
|
||||
"Put",
|
||||
`/:uid`,
|
||||
[]string{"put"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"],
|
||||
beego.ControllerComments{
|
||||
"Delete",
|
||||
`/:uid`,
|
||||
[]string{"delete"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"],
|
||||
beego.ControllerComments{
|
||||
"Login",
|
||||
`/login`,
|
||||
[]string{"get"},
|
||||
nil})
|
||||
|
||||
beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"] = append(beego.GlobalControllerRouter["github.com/deluan/gosonic/controllers:UserController"],
|
||||
beego.ControllerComments{
|
||||
"Logout",
|
||||
`/logout`,
|
||||
[]string{"get"},
|
||||
nil})
|
||||
|
||||
}
|
|
@ -4,7 +4,7 @@ import (
|
|||
"github.com/deluan/gosonic/controllers"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/context"
|
||||
"github.com/astaxie/beego/context"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue