Package co.mastermindcms.modules.rest
Class i18NextController
- java.lang.Object
 - 
- co.mastermindcms.modules.rest.i18NextController
 
 
- 
- All Implemented Interfaces:
 org.springframework.beans.factory.InitializingBean
@RestController public class i18NextController extends java.lang.Object implements org.springframework.beans.factory.InitializingBean 
- 
- 
Field Summary
Fields Modifier and Type Field Description private TranslationServicetranslationService 
- 
Constructor Summary
Constructors Constructor Description i18NextController() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()org.springframework.http.ResponseEntity<?>translationHandler(java.lang.String lang) 
 - 
 
- 
- 
Field Detail
- 
translationService
@Autowired private TranslationService translationService
 
 - 
 
- 
Method Detail
- 
translationHandler
@CrossOrigin(origins="*", allowCredentials="false") @GetMapping("/api/v1/locales/{lang}") @ResponseBody public org.springframework.http.ResponseEntity<?> translationHandler(@PathVariable("lang") java.lang.String lang) 
- 
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
 afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
 
 - 
 
 -