CoreID/app/routing/routers/api/v1/locale.routes.js

23 lines
430 B
JavaScript
Raw Normal View History

2020-05-31 23:00:05 +00:00
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