Added blog functionality, reworked backend api requests

This commit is contained in:
itzMiney committed 2024-12-29 23:32:35 +01:00
1 parent a4b69c5b9a
commit dae95810f2
16 files changed
+696 -171

No files matched your search

+4
View File
@@ -5,6 +5,7 @@ import {BlogComponent} from './blog/blog.component';
import {NotFoundComponent} from './not-found/not-found.component';
import {LoginComponent} from './login/login.component';
import {AdminComponent} from './admin/admin.component';
import {ArticlePageComponent} from './article-page/article-page.component';
export const routes: Routes = [
{
@@ -77,6 +78,9 @@ export const routes: Routes = [
}
}
},
{
path: 'blog/:slug',
component: ArticlePageComponent },
{
path: '**',
pathMatch: 'full',