mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
* rename frontend to web and update contributing guide * rename this time * fix build * restructure rust code * update documentation * update descriptions * Update CONTRIBUTING.md Co-authored-by: J H <2364004+Blu-J@users.noreply.github.com> --------- Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Co-authored-by: J H <2364004+Blu-J@users.noreply.github.com>
12 lines
283 B
TypeScript
12 lines
283 B
TypeScript
import { ActivatedRoute } from '@angular/router'
|
|
|
|
export function getProjectId({ snapshot }: ActivatedRoute): string {
|
|
const projectId = snapshot.paramMap.get('projectId')
|
|
|
|
if (!projectId) {
|
|
throw new Error('projectId is missing from route params')
|
|
}
|
|
|
|
return projectId
|
|
}
|