diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-15 11:54:00 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-15 11:56:24 +0100 |
| commit | e8ff326f0e5bd61fb0a8c22c48f296fcf0249830 (patch) | |
| tree | 19d8c026f8460ec577f446a7d61e68c38acddde0 /static/api | |
| parent | 007bc3fe0615f38cb31d5116759ed3500f6fd3e6 (diff) | |
backend implement auth-service
Diffstat (limited to 'static/api')
| -rw-r--r-- | static/api/index.js | 1 | ||||
| -rw-r--r-- | static/api/session.js | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/static/api/index.js b/static/api/index.js index 07b484d..3f2f483 100644 --- a/static/api/index.js +++ b/static/api/index.js @@ -1,2 +1,3 @@ export * as images from './images.js'; export * as auth from './auth.js'; +export * as session from './session.js'; diff --git a/static/api/session.js b/static/api/session.js new file mode 100644 index 0000000..b7e584b --- /dev/null +++ b/static/api/session.js @@ -0,0 +1,5 @@ +import * as rest from './rest.js'; + +export function current() { + return rest.get('/api/session/current'); +} |