-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* FIrst draft of image handling * Fix service * Fix tests * upload file and switch event from thumbnail to url * Resize and check image size * FIx tests and cdn file dropping * fix last test * fix Dockerfile CI
- Loading branch information
1 parent
92120c7
commit 4b548bd
Showing
24 changed files
with
828 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using api.core.Data.Requests; | ||
using api.emails.Models; | ||
using api.emails.Services.Abstractions; | ||
|
||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace api.core.controllers; | ||
|
||
[ApiController] | ||
[Route("api/test")] | ||
public class TestController(IEmailService service, IConfiguration configuration) : ControllerBase | ||
{ | ||
|
||
[HttpPost("login")] | ||
public async Task<IActionResult> Login([FromBody] LoginRequestDTO req, CancellationToken ct) | ||
{ | ||
var projectId = configuration.GetValue<string>("SUPABASE_PROJECT_ID"); | ||
var anonKey = configuration.GetValue<string>("SUPABASE_ANON_KEY"); | ||
|
||
var client = new Supabase.Client($"https://{projectId}.supabase.co", anonKey); | ||
var response = await client.Auth.SignInWithPassword(req.Email, req.Password); | ||
return Ok(response); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace api.core.Data.Requests; | ||
|
||
public class LoginRequestDTO | ||
{ | ||
public required string Email { get; set; } | ||
public required string Password { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.