Tom Butcher 8ad3d3da5c
Some checks failed
farmcontrol/farmcontrol-api/pipeline/head There was a failure building this commit
Implemented multiple app passwords.
2026-03-02 01:58:24 +00:00

11 lines
387 B
JavaScript

import express from 'express';
import { isAppAuthenticated } from '../../keycloak.js';
import { listODataRouteHandler, metadataODataRouteHandler } from '../../services/misc/odata.js';
const router = express.Router();
router.get('/$metadata', isAppAuthenticated, metadataODataRouteHandler);
router.get('/:objectType', isAppAuthenticated, listODataRouteHandler);
export default router;