aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Startup.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-09-20 08:49:19 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-09-20 08:49:19 -0500
commitad8f173adf8902ef42e2a1f70c675373cbb06950 (patch)
treeebf7c142161d6f96bc093765f4a822d0bc9464d5 /src/slskd/Startup.cs
parentd7d4b34c8aa560c847c9e4c4a14de65a8826b923 (diff)
downloadslskd-ad8f173adf8902ef42e2a1f70c675373cbb06950.tar.gz
rename Peer namespace to Users
Diffstat (limited to 'src/slskd/Startup.cs')
-rw-r--r--src/slskd/Startup.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs
index ac6a3c01..6cc86dcd 100644
--- a/src/slskd/Startup.cs
+++ b/src/slskd/Startup.cs
@@ -38,9 +38,9 @@ namespace slskd
using slskd.Integrations.FTP;
using slskd.Integrations.Pushbullet;
using slskd.Messaging;
- using slskd.Peer;
using slskd.Search;
using slskd.Transfer;
+ using slskd.Users;
using slskd.Validation;
using Soulseek;
@@ -202,9 +202,9 @@ namespace slskd
options.UseSqlite($"Data Source={Path.Combine(OptionsAtStartup.Directories.App, "search.db")}");
});
- services.AddDbContextFactory<PeerDbContext>(options =>
+ services.AddDbContextFactory<UserDbContext>(options =>
{
- options.UseSqlite($"Data Source={Path.Combine(OptionsAtStartup.Directories.App, "peer.db")}");
+ options.UseSqlite($"Data Source={Path.Combine(OptionsAtStartup.Directories.App, "users.db")}");
});
services.AddHttpClient();
@@ -227,7 +227,7 @@ namespace slskd
services.AddSingleton<ISharedFileCache, SharedFileCache>();
services.AddSingleton<ISearchService, SearchService>();
- services.AddSingleton<IPeerService, PeerService>();
+ services.AddSingleton<IUserService, UserService>();
services.AddSingleton<IRoomService, RoomService>();
services.AddSingleton<IFTPClientFactory, FTPClientFactory>();
@@ -313,13 +313,13 @@ namespace slskd
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
- endpoints.MapHub<Hub>("/live");
+ endpoints.MapHub<Hub>("/hub");
endpoints.MapControllers();
endpoints.MapHealthChecks("/health");
if (OptionsAtStartup.Feature.Prometheus)
{
- endpoints.MapMetrics();
+ endpoints.MapMetrics("/metrics");
}
});
@@ -366,7 +366,7 @@ namespace slskd
try
{
using var search = GetFactory<SearchDbContext>().CreateDbContext();
- using var peer = GetFactory<PeerDbContext>().CreateDbContext();
+ using var peer = GetFactory<UserDbContext>().CreateDbContext();
}
catch (Exception ex)
{