u
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
import { Router } from 'express';
|
||||
import { posAuthMiddleware } from './middleware/posAuth.js';
|
||||
import { handleClient } from './routes/client.js';
|
||||
import { handleInit } from './routes/init.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
// POS discovery and pairing
|
||||
router.get('/client', handleClient);
|
||||
|
||||
// POS sync initialization counts
|
||||
router.get('/init', posAuthMiddleware, handleInit);
|
||||
|
||||
export default router;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user