be4d43105e
Node.js/Express backend + vanilla JS frontend. Features: real-time collaborative whiteboard (SSE), multi-page support, LaTeX formulas, shapes/connectors, coordinate systems, number lines, compass, zoom/pan, Catmull-Rom pencil smoothing, ruler/protractor with rotation & resize controls, minimap navigation overlay, auto-measurements, multi-page thumbnails sidebar, PNG export, page templates. Student/teacher workflows: classes, assignments, library, dashboard. Mobile responsive. SQLite (better-sqlite3). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
662 B
JavaScript
16 lines
662 B
JavaScript
const router = require('express').Router();
|
|
const { authMiddleware } = require('../middleware/auth');
|
|
const c = require('../controllers/petController');
|
|
|
|
router.get('/', authMiddleware, c.getPet);
|
|
router.patch('/name', authMiddleware, c.renamePet);
|
|
router.post('/pet', authMiddleware, c.petAction);
|
|
router.patch('/color', authMiddleware, c.updateColor);
|
|
router.post('/star', authMiddleware, c.starCatch);
|
|
router.get('/shop', authMiddleware, c.getShop);
|
|
router.post('/shop/buy', authMiddleware, c.buyBg);
|
|
router.patch('/bg', authMiddleware, c.setBg);
|
|
router.post('/feed', authMiddleware, c.feedPet);
|
|
|
|
module.exports = router;
|