feat: Initialize Angular SSR application with core pages, components, and server setup.
This commit is contained in:
@@ -3,7 +3,7 @@ import { SitemapService } from './sitemap.service';
|
||||
|
||||
@Controller()
|
||||
export class SitemapController {
|
||||
constructor(private readonly sitemapService: SitemapService) {}
|
||||
constructor(private readonly sitemapService: SitemapService) { }
|
||||
|
||||
/**
|
||||
* Main sitemap index - lists all sitemap files
|
||||
@@ -48,4 +48,15 @@ export class SitemapController {
|
||||
async getCommercialSitemap(@Param('page', ParseIntPipe) page: number): Promise<string> {
|
||||
return await this.sitemapService.generateCommercialSitemap(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* Broker profiles sitemap (paginated)
|
||||
* Route: /sitemap/brokers-1.xml, /sitemap/brokers-2.xml, etc.
|
||||
*/
|
||||
@Get('sitemap/brokers-:page.xml')
|
||||
@Header('Content-Type', 'application/xml')
|
||||
@Header('Cache-Control', 'public, max-age=3600')
|
||||
async getBrokerSitemap(@Param('page', ParseIntPipe) page: number): Promise<string> {
|
||||
return await this.sitemapService.generateBrokerSitemap(page);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user