Routes
Utility function regarding Routes
Build Query
Code EditorCopyimport { buildQuery } from '@erudilabs/alma'
Code EditorCopybuildQuery('/profile', { ph:"bukas", id:"danacita" })
The result should be in below
'/profile?ph=bukas&id=danacita'
Build Path
Code EditorCopyimport { buildPath } from '@erudilabs/alma'
Code EditorCopybuildPath('/profile/[username]', { username: "septiven" } )
The result should be in below
'/profile/septiven'
Code EditorCopybuildPath('/profile/[username]/[status]', { username: "septiven", status:'single' } )
The result should be in below
'/profile/septiven/single'