Skip to content

This Firebase project offers an API that returns 302 redirect to URLs written on a Google Sheets. This is useful for editing assets' URLs of Mozilla Hubs / Hubs Cloud from outside of Hubs or Spoke.

License

Notifications You must be signed in to change notification settings

kn1cht/hubs-asset-api-firebase

Repository files navigation

hubs-asset-api

License: MIT

This Firebase project offers an API that returns 302 redirect to URLs written on a Google Sheets. This is useful for editing assets' URLs of Mozilla Hubs / Hubs Cloud from outside of Hubs or Spoke.

Structure

Usage

1. Prepare Firebase Project

$ npm i -g firebase-tools
$ firebase login
$ firebase projects:list
$ firebase use {your-project-id}

2. Prepare Google Sheets

  • Enable a link sharing for anyone with the link
  • Copy the Spreadsheet ID from the URL (https://docs.google.com/spreadsheets/d/{spreadsheetId}/edit#gid=0)
  • Set information of the spreadsheet in the project
$ cp functions/config/example.yaml functions/config/default.yaml
$ vi functions/config/default.yaml

3. Enable Sheets API

4. Deploy Project

About

This Firebase project offers an API that returns 302 redirect to URLs written on a Google Sheets. This is useful for editing assets' URLs of Mozilla Hubs / Hubs Cloud from outside of Hubs or Spoke.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published