remove unnecessary API methods
This commit is contained in:
@ -24,13 +24,6 @@ namespace Oqtane.Controllers
|
||||
this.logger = logger;
|
||||
}
|
||||
|
||||
// GET: api/<controller>
|
||||
[HttpGet]
|
||||
public IEnumerable<PageModule> Get()
|
||||
{
|
||||
return PageModules.GetPageModules();
|
||||
}
|
||||
|
||||
// GET api/<controller>/5
|
||||
[HttpGet("{id}")]
|
||||
public PageModule Get(int id)
|
||||
|
@ -24,14 +24,7 @@ namespace Oqtane.Controllers
|
||||
[HttpGet]
|
||||
public IEnumerable<Profile> Get(string siteid)
|
||||
{
|
||||
if (siteid == "")
|
||||
{
|
||||
return Profiles.GetProfiles();
|
||||
}
|
||||
else
|
||||
{
|
||||
return Profiles.GetProfiles(int.Parse(siteid));
|
||||
}
|
||||
return Profiles.GetProfiles(int.Parse(siteid));
|
||||
}
|
||||
|
||||
// GET api/<controller>/5
|
||||
|
@ -24,14 +24,7 @@ namespace Oqtane.Controllers
|
||||
[HttpGet]
|
||||
public IEnumerable<Role> Get(string siteid)
|
||||
{
|
||||
if (siteid == "")
|
||||
{
|
||||
return Roles.GetRoles();
|
||||
}
|
||||
else
|
||||
{
|
||||
return Roles.GetRoles(int.Parse(siteid));
|
||||
}
|
||||
return Roles.GetRoles(int.Parse(siteid));
|
||||
}
|
||||
|
||||
// GET api/<controller>/5
|
||||
|
@ -42,14 +42,6 @@ namespace Oqtane.Controllers
|
||||
this.logger = logger;
|
||||
}
|
||||
|
||||
// GET: api/<controller>?siteid=x
|
||||
[HttpGet]
|
||||
[Authorize(Roles = Constants.AdminRole)]
|
||||
public IEnumerable<User> Get()
|
||||
{
|
||||
return Users.GetUsers();
|
||||
}
|
||||
|
||||
// GET api/<controller>/5?siteid=x
|
||||
[HttpGet("{id}")]
|
||||
public User Get(int id, string siteid)
|
||||
|
@ -24,14 +24,7 @@ namespace Oqtane.Controllers
|
||||
[HttpGet]
|
||||
public IEnumerable<UserRole> Get(string siteid)
|
||||
{
|
||||
if (siteid == "")
|
||||
{
|
||||
return UserRoles.GetUserRoles();
|
||||
}
|
||||
else
|
||||
{
|
||||
return UserRoles.GetUserRoles(int.Parse(siteid));
|
||||
}
|
||||
return UserRoles.GetUserRoles(int.Parse(siteid));
|
||||
}
|
||||
|
||||
// GET api/<controller>/5
|
||||
|
Reference in New Issue
Block a user