(allSlugs: string[])
| 52 | dayjs(time, "HH:mm").format("HH:mm"); |
| 53 | |
| 54 | export const getVersionAndSlugFromSlugs = (allSlugs: string[]) => { |
| 55 | const version = versions.includes(allSlugs[0].substring(1)) |
| 56 | ? allSlugs[0].substring(1) |
| 57 | : current; |
| 58 | const slugs = versions.includes(allSlugs[0].substring(1)) |
| 59 | ? allSlugs.slice(1, allSlugs.length) |
| 60 | : allSlugs; |
| 61 | return { version, slugs: slugs.length ? slugs : ["distribution"] }; |
| 62 | }; |
| 63 | |
| 64 | export const getRootUrl = () => { |
| 65 | return "https://api-platform.com"; |
nothing calls this directly
no outgoing calls
no test coverage detected