12 lines
322 B
JavaScript
12 lines
322 B
JavaScript
import { Router } from 'express';
|
|
import {handleErrorAsync} from "../../src/helpers";
|
|
import buildLocaleList from "../../src/buildLocaleList";
|
|
|
|
const router = Router();
|
|
|
|
router.get('/versions', handleErrorAsync(async (req, res) => {
|
|
return res.json(buildLocaleList(global.config.locale));
|
|
}));
|
|
|
|
export default router;
|