();
+ await db.Database.EnsureCreatedAsync();
+}
+
+app.UseCors();
+
+app.MapGet("/", () => Results.Content("""
+
+
+ EchoHub
+
+ Welcome to EchoHub
+ EchoHub is a decentralized IRC-like chat network.
+ Use the Server Directory API to browse available servers.
+
+
+ """, "text/html"));
+
+app.MapServerDirectoryApi();
+
+app.Run();
diff --git a/src/EchoHub.Web/Properties/launchSettings.json b/src/EchoHub.Web/Properties/launchSettings.json
new file mode 100644
index 0000000..e262d5b
--- /dev/null
+++ b/src/EchoHub.Web/Properties/launchSettings.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "https://json.schemastore.org/launchsettings.json",
+ "profiles": {
+ "http": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "applicationUrl": "http://localhost:6000",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "https": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "applicationUrl": "https://localhost:7103;http://localhost:5062",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
diff --git a/src/EchoHub.Web/appsettings.Development.json b/src/EchoHub.Web/appsettings.Development.json
new file mode 100644
index 0000000..ff66ba6
--- /dev/null
+++ b/src/EchoHub.Web/appsettings.Development.json
@@ -0,0 +1,8 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ }
+}