Skip to content

Commit

Permalink
Fixed deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
epoupon committed Oct 8, 2023
1 parent 6d4e439 commit 876ee54
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lms/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,9 @@ int main(int argc, char* argv[])

Service<Scrobbling::IScrobblingService> scrobblingService {Scrobbling::createScrobblingService(ioContext, database)};

std::unique_ptr<Wt::WResource> subsonicResource;

// bind API resources
if (config->getBool("api-subsonic", true))
{
subsonicResource = API::Subsonic::createSubsonicResource(database);
server.addResource(subsonicResource.get(), "/rest");
}
server.addResource(API::Subsonic::createSubsonicResource(database), "/rest");

// bind UI entry point
server.addEntryPoint(Wt::EntryPointType::Application,
Expand Down

0 comments on commit 876ee54

Please sign in to comment.