DEV Community

Discussion on: Angular and the REST - Authentication with JWT

Collapse
 
jolszewskii profile image
jolszewskii

Hi,

in Startup.cs add "app.UseRouting();" instead of "app.UseMvc();" and "app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller}/{action=Index}/{id?}");
});"

That worked for me.

Collapse
 
anassl profile image
AnassL

Hi,

Thanks for your comment,

The code you implemented in startup class is to upgrade to version 3.0 of .Net Core, maybe there's something else missing, but I'll give it a try again with 3.0 asap.