parent
0ecef1a547
commit
2d4d6d3823
@ -3,10 +3,11 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using OliverBooth.Data.Blog;
|
using OliverBooth.Data.Blog;
|
||||||
using OliverBooth.Services;
|
using OliverBooth.Services;
|
||||||
|
|
||||||
namespace OliverBooth.Controllers;
|
namespace OliverBooth.Areas.Api.Controllers;
|
||||||
|
|
||||||
[Controller]
|
[Controller]
|
||||||
[Route("/api/blog")]
|
[Area("api")]
|
||||||
|
[Route("blog")]
|
||||||
public sealed class BlogApiController : ControllerBase
|
public sealed class BlogApiController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly BlogService _blogService;
|
private readonly BlogService _blogService;
|
@ -8,6 +8,7 @@ namespace OliverBooth.Areas.Blog.Pages;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents the page model for the <c>Article</c> page.
|
/// Represents the page model for the <c>Article</c> page.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Area("blog")]
|
||||||
public class Article : PageModel
|
public class Article : PageModel
|
||||||
{
|
{
|
||||||
private readonly BlogService _blogService;
|
private readonly BlogService _blogService;
|
||||||
|
@ -5,6 +5,7 @@ using OliverBooth.Services;
|
|||||||
|
|
||||||
namespace OliverBooth.Areas.Blog.Pages;
|
namespace OliverBooth.Areas.Blog.Pages;
|
||||||
|
|
||||||
|
[Area("blog")]
|
||||||
public class Index : PageModel
|
public class Index : PageModel
|
||||||
{
|
{
|
||||||
private readonly BlogService _blogService;
|
private readonly BlogService _blogService;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using Cysharp.Text;
|
using Cysharp.Text;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
using OliverBooth.Data.Blog;
|
using OliverBooth.Data.Blog;
|
||||||
@ -9,6 +9,7 @@ namespace OliverBooth.Areas.Blog.Pages;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents the page model for the <c>RawArticle</c> page.
|
/// Represents the page model for the <c>RawArticle</c> page.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Area("blog")]
|
||||||
public class RawArticle : PageModel
|
public class RawArticle : PageModel
|
||||||
{
|
{
|
||||||
private readonly BlogService _blogService;
|
private readonly BlogService _blogService;
|
||||||
|
@ -36,22 +36,22 @@
|
|||||||
<nav>
|
<nav>
|
||||||
<ul class="site-nav">
|
<ul class="site-nav">
|
||||||
<li>
|
<li>
|
||||||
<a asp-page="/index">About</a>
|
<a asp-area="" asp-page="/index">About</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a asp-area="Blog" asp-page="/index">Blog</a>
|
<a asp-area="blog" asp-page="/index">Blog</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a asp-page="/tutorials/index">Tutorials</a>
|
<a asp-area="" asp-page="/tutorials/index">Tutorials</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a asp-page="/projects/index">Projects</a>
|
<a asp-area="" asp-page="/projects/index">Projects</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a asp-page="/contact/index">Contact</a>
|
<a asp-area="" asp-page="/contact/index">Contact</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a asp-page="/donate">Donate</a>
|
<a asp-area="" asp-page="/donate">Donate</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
@ -68,7 +68,7 @@
|
|||||||
<div class="container text-center">
|
<div class="container text-center">
|
||||||
© @DateTime.UtcNow.Year
|
© @DateTime.UtcNow.Year
|
||||||
•
|
•
|
||||||
<a asp-page="/privacy/index">Privacy</a>
|
<a asp-area="" asp-page="/privacy/index">Privacy</a>
|
||||||
•
|
•
|
||||||
<a href="https://mastodon.olivr.me/@@oliver" rel="me">Mastodon</a>
|
<a href="https://mastodon.olivr.me/@@oliver" rel="me">Mastodon</a>
|
||||||
•
|
•
|
||||||
|
Loading…
Reference in New Issue
Block a user