'How do I create a slug domain for my website to use as a callback URL on GitHub?

I am trying to create a permanent slug domain for my website to be a Twitch callback URL for OAuth 2.0 so I can display my livestream when I am live as well as send data like my stream title and game to a discord webhook to automatically ping my discord server. I want to have a link like www.example.com/oauth/twitch so that it doesn't send it to www.example.com, though the livestream will probably be shown on www.example.com or another slug. Is there any reason to do this and even if not, how do I do that? I am hosting the code using GitHub Pages and have knowledge with HTML, CSS, and JavaScript. Most things I've seen about making slugs are Python/automatically making slugs.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source