essencebit / SignalRSwaggerGen

MIT License
70 stars 8 forks source link

missing / after base url causing 404 #22

Closed imabusyman closed 2 years ago

imabusyman commented 2 years ago

https://localhost:44392hubs/StronglyTypedTestHub/TestMethod

This is even on your test samples, but the above URL is missing / before hubs

Dorin-Mocan commented 2 years ago

@imabusyman , hello. I'll investigate asap and provide a fix if the case. Thanks for proactivity.

imabusyman commented 2 years ago

i fixed it by adding SignalRHub.Path property to "/hubs" or whatever I name it, but if that isn't there, it errors.

Dorin-Mocan commented 2 years ago

@imabusyman , thanks for raising this issue. Indeed it's a bug from my side. I need to prepend a slash. I'll release a new version soon. Good that you found a solution, however there's a better option. Instead of setting a hub path for each hub, you can just set a function that will calculate the hub path. It can be done in the extension method AddSignalRSwaggerGen(options=>{...});

Dorin-Mocan commented 2 years ago

I released the version 3.2.1 containing a fix for this issue.