diff options
author | Lizzy Hunt <logan.hunt@usu.edu> | 2023-02-15 18:03:46 -0700 |
---|---|---|
committer | Lizzy Hunt <logan.hunt@usu.edu> | 2023-02-15 18:05:55 -0700 |
commit | 32803c441678cd640e46153688d26c4c0746d7b3 (patch) | |
tree | f2f186df72073be9ca712d98dff7d180eaa34371 /src/actions.js | |
parent | 30cbc219e68ef5fc7da56e322e1aeca102bdb479 (diff) | |
download | aggietimed-32803c441678cd640e46153688d26c4c0746d7b3.tar.gz aggietimed-32803c441678cd640e46153688d26c4c0746d7b3.zip |
We do a little logging, but cringe OpenAPI errors be making me want to shoot myself. We have some shit working though.
Diffstat (limited to 'src/actions.js')
-rw-r--r-- | src/actions.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/actions.js b/src/actions.js new file mode 100644 index 0000000..37b64f4 --- /dev/null +++ b/src/actions.js @@ -0,0 +1,11 @@ +import * as aggietime from "./aggietime.js"; + +const ACTIONS = { + "clock-in": aggietime.clock_in, +}; + +export const do_action = async (body) => { + const { action, rest } = body; + + return await ACTIONS[action](rest); +}; |