package com.codenetworkz.blog.web.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("blog")
public class BlogController {

    @GetMapping
    public String blogViewPage() {
        return "user/home";
    }

    @GetMapping("views")
    public String blogPage() {
        return "user/view";
    }


}
