Skip to content

Commit

Permalink
update path name
Browse files Browse the repository at this point in the history
  • Loading branch information
Joyce committed Nov 13, 2023
1 parent a969e95 commit 13a8e38
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace PERUSTARS.ProfileManagement.Interface.REST
{
[ApiController]
[Route("api/v1")]
[Route("api/v1/[controller]")]
public class FollowerController:ControllerBase
{
private readonly IMediator _mediator;
Expand Down Expand Up @@ -42,7 +42,7 @@ public async Task<IActionResult> FollowArtist([FromBody] FollowArtistCommand fol
return BadRequest($"Error could not follow the artist {ex.Message}");//u
}
}
[HttpGet("/artist/{artistId}")]
[HttpGet("artist/{artistId}")]
public async Task<IActionResult> GetAllFollowersFromArtist(long artistId)
{
var result = await _mediator.Send(new GetAllFollowersByArtistQuery() { ArtistId = artistId });
Expand Down
2 changes: 1 addition & 1 deletion PERUSTARS/PERUSTARS/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddDbContext<AppDbContext>(options =>
{
//options.UseNpgsql(Configuration.GetConnectionString("PostgresSQLConnection"));
//options.UseMySQL(Configuration.GetConnectionString("DefaultConnection"));
options.UseMySQL(Configuration.GetConnectionString("DefaultConnection"));
});

services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly()));
Expand Down
2 changes: 1 addition & 1 deletion PERUSTARS/PERUSTARS/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//"DefaultConnection3": "Server=MYSQL5047.site4now.net;Database=db_a758df_perusta;Uid=a758df_perusta;Pwd=password1",
//"DefaultConnection": "Server=bufyroukqdunhwcivvpo-mysql.services.clever-cloud.com;Database=bufyroukqdunhwcivvpo;Uid=ubcldvvxbrtlhp2d;Pwd=FltJthiJHLXaKDmKT11O"
//"PostgresSQLConnection": "host=localhost;port=5432;username=postgres;password=postgres;database=perustars",
//"DefaultConnection": "host=localhost;port=3306;username=root;password=password;database=perustars"
"DefaultConnection": "host=localhost;port=3306;username=root;password=password;database=perustars"
// "DefaultConnection": "server=localhost;port=3306;database=perustars;uid=root;password=root"
},
"AllowedHosts": "*"
Expand Down
Binary file modified PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.dll
Binary file not shown.
Binary file modified PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.pdb
Binary file not shown.
1 change: 1 addition & 0 deletions PERUSTARS/PERUSTARS/bin/Debug/net5.0/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"ConnectionStrings": {


//"DefaultConnection1ssssss": "server=localhost;port=3306;database=perustars;uid=root;password=admin",
// BD Deployment //"DefaultConnection": "server=perustars-main-db.mysql.database.azure.com;port=3306;database=perustars;uid=perustarsAdmin;password=Admin123"
//"DefaultConnection3": "Server=MYSQL5047.site4now.net;Database=db_a758df_perusta;Uid=a758df_perusta;Pwd=password1",
Expand Down

0 comments on commit 13a8e38

Please sign in to comment.