Initial commit
This commit is contained in:
24
Oqtane.Server/Controllers/TenantController.cs
Normal file
24
Oqtane.Server/Controllers/TenantController.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Oqtane.Repository;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Controllers
|
||||
{
|
||||
[Route("{site}/api/[controller]")]
|
||||
public class TenantController : Controller
|
||||
{
|
||||
private readonly ITenantRepository tenants;
|
||||
|
||||
public TenantController(ITenantRepository Tenants)
|
||||
{
|
||||
tenants = Tenants;
|
||||
}
|
||||
|
||||
// GET: api/<controller>
|
||||
[HttpGet]
|
||||
public Tenant Get()
|
||||
{
|
||||
return tenants.GetTenant();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user