I have created REST API in django. For frontend i am using Angular framework. In django my site for showing all the data is 'http://127.0.0.1:8000/flightschedule/'. Now for angular in routing module i am confused to which path should i give. I have created my code but for that code the API data is not reflecting on client. I am proving routing code below:
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { FlightListComponent } from "./flight-list/flight-list.component";
const routes: Routes = [
{path: '', redirectTo: 'flightschedule/', pathMatch: 'full'},
{path: 'flights', component: FlightListComponent}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }