da9224a069
feat: server & stream invites rework Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
22 lines
391 B
JavaScript
22 lines
391 B
JavaScript
/**
|
|
* Collection of functions for resolving relative routes from the backend, so that they aren't duplicated
|
|
* all over the place
|
|
*/
|
|
|
|
/**
|
|
* @param {string} streamId
|
|
* @returns {string}
|
|
*/
|
|
function getStreamRoute(streamId) {
|
|
return `/streams/${streamId}`
|
|
}
|
|
|
|
function getRegistrationRoute() {
|
|
return `/authn/register`
|
|
}
|
|
|
|
module.exports = {
|
|
getStreamRoute,
|
|
getRegistrationRoute
|
|
}
|