[CP] Logs

This commit is contained in:
hydrant
2019-09-22 15:16:05 +02:00
parent 10833a5285
commit d29f6acbf5
5 changed files with 85 additions and 21 deletions

View File

@@ -1,9 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using ReallifeGamemode.Database.Entities;
using ReallifeGamemode.Database.Models;
@@ -25,6 +27,8 @@ namespace ReallifeGamemode.DataService.Controllers
}
[HttpGet("Data")]
[ProducesResponseType(typeof(GetUserDataResponse), StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
public ActionResult<GetUserDataResponse> Data()
{
User user = dbContext.Users.Where(u => u.Id == UserId).FirstOrDefault();