mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-29 16:04:38 -04:00
[api] GET /api/versions
This commit is contained in:
parent
0a8854bd60
commit
ed3c2980ce
@ -78,6 +78,8 @@ app.use(async function (req, res, next) {
|
||||
|
||||
router.use(grant.express()(require('./social').config));
|
||||
|
||||
app.use(require('./routes/home').default);
|
||||
|
||||
app.use(require('./routes/banner').default);
|
||||
|
||||
app.use(require('./routes/user').default);
|
||||
|
10
server/routes/home.js
Normal file
10
server/routes/home.js
Normal file
@ -0,0 +1,10 @@
|
||||
import { Router } from 'express';
|
||||
import {buildLocaleList, handleErrorAsync} from "../../src/helpers";
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.get('/versions', handleErrorAsync(async (req, res) => {
|
||||
return res.json(buildLocaleList(global.config.locale));
|
||||
}));
|
||||
|
||||
export default router;
|
Loading…
x
Reference in New Issue
Block a user