forked from sanchezvem/PyroFetes
MAJ routes d'api pour liaison avec front
This commit is contained in:
@@ -8,7 +8,7 @@ public class CreateEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("Api/effects");
|
||||
Post("/effects");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ public class DeleteEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("Api/effects/{@id}", x => new { x.Id });
|
||||
Delete("/effects/{@id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllEffectsEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endp
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("Api/effects");
|
||||
Get("/effects");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ public class GetEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpoint
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("Api/effects/{@id}", x => new { x.Id });
|
||||
Get("/effects/{@id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class UpdateEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put("Api/effects/{@id}", x => new { x.Id });
|
||||
Put("/effects/{@id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user