Created middleware for rest that reads the language from the Accept-Language header

This commit is contained in:
Alejandro Celaya
2016-07-21 16:20:27 +02:00
parent 73a35a8f44
commit 06868f782b
5 changed files with 104 additions and 0 deletions

View File

@@ -15,6 +15,12 @@ Statuses:
[TODO]
## Language
In order to set the application language, you have to pass it by using the Accept-Language header.
If not provided or provided language is not supported, english (en_US) will be used.
## Endpoints
#### Authenticate