blob: af22c3acddd6d6c86209e175d34c3929c0a5ce07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import * as aggietime from "./aggietime.js";
const ACTIONS = {
"clock-in": aggietime.clock_in,
"clock-out": aggietime.clock_out,
"current-shift": aggietime.current_shift,
"current-user": aggietime.get_user_info,
"status-line": aggietime.get_status_line,
};
export const do_action = async (body) => {
const { action, rest } = body;
return await ACTIONS[action](rest);
};
|