|
Last change
on this file since 5aa102d was 5aa102d, checked in by stefansaveski <stefansaveski19@…>, 11 months ago |
|
First commit
|
-
Property mode
set to
100644
|
|
File size:
693 bytes
|
| Line | |
|---|
| 1 | //using iknow_api.Data;
|
|---|
| 2 | using iknow_api.Models;
|
|---|
| 3 | using System.Threading.Tasks;
|
|---|
| 4 | using Microsoft.AspNetCore.Mvc;
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 | namespace iknow_api.Controllers
|
|---|
| 8 | {
|
|---|
| 9 | [ApiController]
|
|---|
| 10 | [Route("user")]
|
|---|
| 11 | public class UsersController : ControllerBase
|
|---|
| 12 | {
|
|---|
| 13 | private readonly AppDbContext _context;
|
|---|
| 14 | private readonly IConfiguration _configuration;
|
|---|
| 15 |
|
|---|
| 16 | public UsersController(AppDbContext context, IConfiguration configuration)
|
|---|
| 17 | {
|
|---|
| 18 | _context = context;
|
|---|
| 19 | _configuration = configuration;
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | [HttpPost("add")]
|
|---|
| 23 | public async Task<IActionResult> Add([FromBody] JsonContent body)
|
|---|
| 24 | {
|
|---|
| 25 |
|
|---|
| 26 | return null;
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 | }
|
|---|
| 30 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.