Removed Login_Required from Language
Added login in Swagger Bug Fixed
This commit is contained in:
@@ -13,7 +13,6 @@ namespace Step.Controllers.WebApi
|
||||
[RoutePrefix("api/language")]
|
||||
public class LanguageController : ApiController
|
||||
{
|
||||
[WebApiAuthorize(FunctionAccess = "test", Action = ACTIONS.READ)]
|
||||
[Route("languages"), HttpGet]
|
||||
public IHttpActionResult GetLanguageList()
|
||||
{
|
||||
@@ -23,8 +22,7 @@ namespace Step.Controllers.WebApi
|
||||
|
||||
return Ok(availableLanguages);
|
||||
}
|
||||
|
||||
[WebApiAuthorize(FunctionAccess = "test", Action = ACTIONS.READ)]
|
||||
|
||||
[Route("{language}"), HttpGet()]
|
||||
public IHttpActionResult GetTranslations(string language)
|
||||
{
|
||||
|
||||
@@ -24,8 +24,10 @@ namespace Step.Controllers.WebApi
|
||||
stop.Start();
|
||||
try
|
||||
{
|
||||
using( NcHandler ncHandler = new NcHandler()) {
|
||||
genericData = ncHandler.GetNcGenericData();
|
||||
using (NcHandler ncHandler = new NcHandler())
|
||||
{
|
||||
ncHandler.Connect();
|
||||
genericData = ncHandler.GetNcGenericData();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user