slik-dispenser/backend/Controllers/UserController.cs

17 lines
396 B
C#
Raw Normal View History

2023-12-06 13:11:11 +00:00
using Microsoft.AspNetCore.Mvc;
using backend.Application;
using backend.Models;
namespace backend.Controllers;
[ApiController]
public class UserController : ControllerBase
{
[HttpPost("Register")]
public void Register()
{
ApplicationState.DbContext!.Add(new User { Username = "test", Password = "test", TouchCode = "1234" });
ApplicationState.DbContext!.SaveChanges();
}
}