Compare commits
1
Commits
4cb24f7085
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c711e77bd |
No files matched your search
+2
-2
@@ -46,9 +46,9 @@ SANDBAR_MASTER_KEY=
|
|||||||
#SANDBAR_SMTP_PASSWORD=
|
#SANDBAR_SMTP_PASSWORD=
|
||||||
#SANDBAR_SMTP_FROM=sandbar@example.com
|
#SANDBAR_SMTP_FROM=sandbar@example.com
|
||||||
|
|
||||||
# Mobile companion app (the sandbar-mobile PWA): Web Push, served from Sandbar or from another site.
|
# Mobile companion app (the Remora PWA): Web Push, served from Sandbar or from another site.
|
||||||
# Folder holding the app's files; Sandbar serves them at /app/. Needs HTTPS (or localhost) for push.
|
# Folder holding the app's files; Sandbar serves them at /app/. Needs HTTPS (or localhost) for push.
|
||||||
#SANDBAR_APP_DIR=../sandbar-mobile/public
|
#SANDBAR_APP_DIR=../remora/public
|
||||||
# If the app is hosted on another origin instead, allow it to call the API.
|
# If the app is hosted on another origin instead, allow it to call the API.
|
||||||
#SANDBAR_APP_ORIGIN=https://sandbar-app.example.com
|
#SANDBAR_APP_ORIGIN=https://sandbar-app.example.com
|
||||||
# Contact that push services (Google, Apple, Mozilla) can reach if Sandbar misbehaves. Defaults to SANDBAR_URL when that is https.
|
# Contact that push services (Google, Apple, Mozilla) can reach if Sandbar misbehaves. Defaults to SANDBAR_URL when that is https.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# Mobile companion API
|
# Mobile companion API
|
||||||
|
|
||||||
Used by the sandbar-mobile PWA. All calls take `Authorization: Bearer <api key>`.
|
Used by the Remora PWA. All calls take `Authorization: Bearer <api key>`.
|
||||||
|
|
||||||
| Call | What it does |
|
| Call | What it does |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The mobile companion is a PWA that lives in its own repository (sandbar-mobile). Sandbar can
|
// The mobile companion is a PWA that lives in its own repository (remora). Sandbar can
|
||||||
// serve it at /app/ (AppDir), or the app can be hosted elsewhere and allowed to call the API
|
// serve it at /app/ (AppDir), or the app can be hosted elsewhere and allowed to call the API
|
||||||
// (AppOrigin). Either way it signs in with mobileLogin, which returns an API key instead of a cookie.
|
// (AppOrigin). Either way it signs in with mobileLogin, which returns an API key instead of a cookie.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user