forked from Yara724/api
Added GET car-other-parts in v2 as well; deprecated old endpoints and reordered swagger documents
This commit is contained in:
10
src/main.ts
10
src/main.ts
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user