Skip to content

Commit 0383b03

Browse files
authored
Create biomechanics.js
1 parent fecfda9 commit 0383b03

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

routes/biomechanics.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import express from 'express';
2+
import * as BM from 'biomechanics.js';
3+
4+
const router = express.Router();
5+
const bm = new BM.Biomechanics();
6+
7+
router.post('/musculoskeletal-modeling', async (req, res) => {
8+
const { model } = req.body;
9+
const musculoskeletalModel = await bm.model(model);
10+
res.json({ musculoskeletalModel });
11+
});
12+
13+
router.post('/movement-analysis', async (req, res) => {
14+
const { data } = req.body;
15+
const movementAnalysis = await bm.analyze(data);
16+
res.json({ movementAnalysis });
17+
});
18+
19+
router.post('/prosthetic-design', async (req, res) => {
20+
const { design } = req.body;
21+
const prostheticDesign = await bm.design(design);
22+
res.json({ prostheticDesign });
23+
});
24+
25+
export default router;

0 commit comments

Comments
 (0)