Use constant

This commit is contained in:
Deluan 2023-01-20 16:01:16 -05:00
parent 0c27e7a43b
commit adea15ab93
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func startServer(ctx context.Context) func() error {
a := CreateServer(conf.Server.MusicFolder)
a.MountRouter("Native API", consts.URLPathNativeAPI, CreateNativeAPIRouter())
a.MountRouter("Subsonic API", consts.URLPathSubsonicAPI, CreateSubsonicAPIRouter())
a.MountRouter("Public Endpoints", "/p", CreatePublicRouter())
a.MountRouter("Public Endpoints", consts.URLPathPublic, CreatePublicRouter())
if conf.Server.LastFM.Enabled {
a.MountRouter("LastFM Auth", consts.URLPathNativeAPI+"/lastfm", CreateLastFMRouter())
}