init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
using System.Web.Http;
|
||||
using Kreta.User.WebApi.Attributes;
|
||||
using Kreta.User.WebApi.Infrastructure;
|
||||
|
||||
namespace Kreta.User.WebApi.Controllers
|
||||
{
|
||||
[ApiKeyAuthorization]
|
||||
[RoutePrefix(Constants.RoutePrefix + Constants.VersionName)]
|
||||
public class InformationController : ApiController
|
||||
{
|
||||
private readonly Core.VersionInfo _versionInfo;
|
||||
|
||||
public InformationController()
|
||||
{
|
||||
_versionInfo = Core.KretaVersion.Instance;
|
||||
}
|
||||
|
||||
[Route("getversion")]
|
||||
[HttpGet]
|
||||
public Core.VersionInfo GetVersion()
|
||||
{
|
||||
return _versionInfo;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue