Added GET car-other-parts in v2 as well; deprecated old endpoints and reordered swagger documents

This commit is contained in:
SepehrYahyaee
2026-04-28 10:01:45 +03:30
parent 8caf13cf18
commit bcedd8c6f3
7 changed files with 104 additions and 7 deletions

View File

@@ -42,6 +42,16 @@ async function bootstrap() {
swaggerOptions: {
persistAuthorization: true,
docExpansion: "none",
tagsSorter: (a: string, b: string) => {
const priority: Record<string, number> = {
user: 0,
actor: 1,
};
const pa = priority[a] ?? 100;
const pb = priority[b] ?? 100;
if (pa !== pb) return pa - pb;
return a.localeCompare(b);
},
},
});
await app.listen(process.env.PORT);