This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-28 07:34:30 -07:00
|
|
|
import { Router } from 'express';
|
2022-01-03 10:22:10 -08:00
|
|
|
import {handleErrorAsync} from "../../src/helpers";
|
|
|
|
import buildLocaleList from "../../src/buildLocaleList";
|
2021-08-28 07:34:30 -07:00
|
|
|
|
|
|
|
const router = Router();
|
|
|
|
|
|
|
|
router.get('/versions', handleErrorAsync(async (req, res) => {
|
|
|
|
return res.json(buildLocaleList(global.config.locale));
|
|
|
|
}));
|
|
|
|
|
|
|
|
export default router;
|