carson-katri / carson-katri/router

Path translation?

Open
#2 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
23
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The standard for names in Swift is camelCase, but most websites use kebab-case for URL components. I see three different ways to reconcile this:

1. Stick to camelCase URLs. This means the URLs are likely case sensitive and it would be obvious from the URL that this was not a regular web app.
2. Automatically translate the route names to kebab-case. This would provide standard web app behavior.
3. Allow users to somehow specify custom path components for a given route, overriding the default.

I think a combination of 2 and 3 would be best, providing sensible defaults while allowing users to potentially port existing URLs over to Tokamak, but I’m willing to have my mind changed!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.