Add methods for authentication

This commit is contained in:
jvyden 2021-10-12 15:35:48 -04:00
commit 51b652f36d
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
4 changed files with 73 additions and 31 deletions

View file

@ -22,11 +22,11 @@ namespace ProjectLighthouse.Controllers {
return this.Ok(user.Serialize());
}
[HttpPost("user/{username}")]
public async Task<IActionResult> CreateUser(string username) {
await new Database().CreateUser(username);
return await GetUser(username);
}
// [HttpPost("user/{username}")]
// public async Task<IActionResult> CreateUser(string username) {
// await new Database().CreateUser(username);
// return await GetUser(username);
// }
[HttpPost("updateUser")]
public async Task<IActionResult> UpdateUser() {