Start client-side locale support

This commit is contained in:
garrettmills
2020-05-31 18:00:05 -05:00
parent d2ae9c43e8
commit c956628c53
16 changed files with 324 additions and 66 deletions

View File

@@ -0,0 +1,22 @@
const locale_routes = {
prefix: '/api/v1/locale',
middleware: [],
get: {
'/resolve/:resolver': [
'controller::api:v1:Locale.resolve'
],
'/module/:resolver': [
'controller::api:v1:Locale.load_module',
],
},
post: {
'/batch': [
'controller::api:v1:Locale.batch_resolve',
],
},
}
module.exports = exports = locale_routes