feat:完善角色授权用户功能
This commit is contained in:
@@ -69,10 +69,19 @@ public class Startup : AppStartup
|
||||
app.UseAuthorization();
|
||||
|
||||
app.UseInject(string.Empty);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
[AppStartup(-1)]
|
||||
public class EndStartup : AppStartup
|
||||
{
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
{
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
endpoints.MapHub<OnlineUserHub>("/api/hub/main");
|
||||
endpoints.MapControllers();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user