]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/services.ts
Only use account name in routes
[github/Chocobozzz/PeerTube.git] / server / controllers / services.ts
index c272edccd5196256d93089544d7388e2f11cfd90..a58a5b8cf2b49a068de56f2480b2e39271198c4c 100644 (file)
@@ -10,7 +10,7 @@ servicesRouter.use('/oembed',
   asyncMiddleware(oembedValidator),
   generateOEmbed
 )
-servicesRouter.use('/redirect/accounts/:nameWithHost',
+servicesRouter.use('/redirect/accounts/:accountName',
   asyncMiddleware(accountsNameWithHostGetValidator),
   redirectToAccountUrl
 )