DEV Community

eyalbmma
eyalbmma

Posted on

trying to add ads.txt to the root of my domain

i added a file to the root directory next to the index.html page in angular project the file name is ads.txt
i would like to add a line in type script to app-routing.modules.ts to enable me to browse to this page
please advise i am new to angular

const routes: Routes = [
{ path: 'ads.txt', ????(what sould i put here? }
]

i would like when browse to http://mydomain/ads.txt the text file should be seen on browser

Top comments (0)