diff --git a/backend/ResQueue/ResQueue/ResQueue.csproj b/backend/ResQueue/ResQueue/ResQueue.csproj
index c35f16a..258afed 100644
--- a/backend/ResQueue/ResQueue/ResQueue.csproj
+++ b/backend/ResQueue/ResQueue/ResQueue.csproj
@@ -28,7 +28,7 @@
ResQueue.MassTransit
- 1.0.0-beta.10
+ 1.0.0-beta.11
Filip Bekić
ResQueue
MassTransit SQL Transport Web UI
diff --git a/backend/ResQueue/ResQueue/ResQueueExtensions.cs b/backend/ResQueue/ResQueue/ResQueueExtensions.cs
index 00e46c5..4df4823 100644
--- a/backend/ResQueue/ResQueue/ResQueueExtensions.cs
+++ b/backend/ResQueue/ResQueue/ResQueueExtensions.cs
@@ -37,7 +37,6 @@ public static IApplicationBuilder UseResQueue(this WebApplication app, string pr
string[] frontendRoutes =
[
"",
- "/resqueue-ui",
];
app.UseRewriter(frontendRoutes.Aggregate(
@@ -60,16 +59,4 @@ public static IApplicationBuilder UseResQueue(this WebApplication app, string pr
return app;
}
-}
-
-// app.UseStaticFiles(new StaticFileOptions()
-// {
-// FileProvider = embeddedProvider,
-// OnPrepareResponse = (context) =>
-// {
-// context.Context.Response.Headers.CacheControl =
-// context.Context.Request.Path.StartsWithSegments("/assets")
-// ? "public, max-age=31536000, immutable"
-// : "no-cache, no-store";
-// }
-// });
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/backend/ResQueue/WebSample/Program.cs b/backend/ResQueue/WebSample/Program.cs
index facc3ee..4736c4f 100644
--- a/backend/ResQueue/WebSample/Program.cs
+++ b/backend/ResQueue/WebSample/Program.cs
@@ -23,14 +23,13 @@ public static void Main(string[] args)
policy.AllowCredentials();
});
});
-
+
builder.AddResQueue(opt =>
{
opt.PostgreSQLConnectionString =
"Host=localhost;Database=sandbox100;Username=postgres;Password=postgres;";
});
- // Add services to the container.
builder.Services.AddOptions().Configure(options =>
{
options.Host = "localhost";
@@ -43,9 +42,7 @@ public static void Main(string[] args)
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
-
builder.Services.AddPostgresMigrationHostedService();
-
builder.Services.AddMarten(x =>
{
x.Connection("Host=localhost;Database=sandbox100;Username=postgres;Password=postgres;");
@@ -54,17 +51,12 @@ public static void Main(string[] args)
builder.Services.AddMassTransit(mt =>
{
mt.AddSqlMessageScheduler();
-
mt.SetMartenSagaRepositoryProvider();
-
mt.AddConsumer()
.Endpoint(e => { e.ConcurrentMessageLimit = 1; });
-
mt.AddConsumer()
.Endpoint(e => { e.ConcurrentMessageLimit = 1; });
-
mt.AddJobSagaStateMachines();
-
mt.UsingPostgres((context, config) =>
{
config.UseSqlMessageScheduler();
@@ -76,11 +68,7 @@ public static void Main(string[] args)
app.UseCors("AllowAll");
app.UseSwagger();
app.UseSwaggerUI();
-
- app.MapGet("/", () => "Hello World!");
-
- app.UseResQueue();
-
+ app.UseResQueue("custom-prefix");
app.Run();
}
}
\ No newline at end of file
diff --git a/backend/ResQueue/WebSample/WebSample.csproj b/backend/ResQueue/WebSample/WebSample.csproj
index 2276be4..afd8f0b 100644
--- a/backend/ResQueue/WebSample/WebSample.csproj
+++ b/backend/ResQueue/WebSample/WebSample.csproj
@@ -14,7 +14,7 @@
-
+
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 1322b62..b772596 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -10,32 +10,32 @@ const router = createRouter({
history: createWebHistory('/' + resqueueConfig.prefix),
routes: [
{
- path: '/resqueue-ui',
+ path: '',
redirect: {
name: 'overview'
},
component: Broker,
children: [
{
- path: '/resqueue-ui/overview',
+ path: '/overview',
name: 'overview',
props: true,
component: BrokerOverview
},
{
- path: '/resqueue-ui/topics',
+ path: '/topics',
name: 'topics',
props: true,
component: BrokerTopics
},
{
- path: '/resqueue-ui/queues',
+ path: '/queues',
name: 'queues',
props: true,
component: BrokerQueues
},
{
- path: '/resqueue-ui/jobs',
+ path: '/jobs',
name: 'jobs',
props: true,
component: BrokerQueues
@@ -43,7 +43,7 @@ const router = createRouter({
]
},
{
- path: '/resqueue-ui/queues/:queueName',
+ path: '/queues/:queueName',
name: 'messages',
props: true,
component: Messages