mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-26 15:08:39 +00:00
Add methods for authentication
This commit is contained in:
parent
223caa44af
commit
51b652f36d
4 changed files with 73 additions and 31 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue