mirror of
https://github.com/imputnet/cobalt.git
synced 2025-08-12 07:28:27 +00:00
api/service-config: add support for m
subdomain for twitch (#1407)
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
* api/twitch: add support for m. subdomain * tests/twitch: add test for m. subdomain
This commit is contained in:
parent
d3ea80fdfe
commit
1d5db46a79
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user