DiscordTickets/src/routes/api/locales.js

7 lines
177 B
JavaScript
Raw Normal View History

2022-07-17 00:18:50 +03:00
module.exports.get = () => ({
handler: async (req, res) => {
/** @type {import("client")} */
const client = res.context.config.client;
return client.i18n.locales;
},
});