api/service-config: add support for m subdomain for twitch (#1407)
* api/twitch: add support for m. subdomain * tests/twitch: add test for m. subdomain
This commit is contained in:
@@ -165,6 +165,7 @@ export const services = {
|
||||
twitch: {
|
||||
patterns: [":channel/clip/:clip"],
|
||||
tld: "tv",
|
||||
subdomains: ["clips", "www", "m"],
|
||||
},
|
||||
twitter: {
|
||||
patterns: [
|
||||
|
||||
@@ -29,5 +29,14 @@
|
||||
"code": 200,
|
||||
"status": "tunnel"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "clip (mobile subdomain)",
|
||||
"url": "https://m.twitch.tv/rtgame/clip/TubularInventiveSardineCorgiDerp-PM47mJQQ2vsL5B5G",
|
||||
"params": {},
|
||||
"expected": {
|
||||
"code": 200,
|
||||
"status": "redirect"
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user