Ignore:
Timestamp:
03/04/23 19:33:53 (16 months ago)
Author:
GitHub <noreply@…>
Branches:
main
Children:
8b7dd7f, eac569a
Parents:
eef07ff (diff), 4103eaa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
SazdovaEkaterina <74919977+SazdovaEkaterina@…> (03/04/23 19:33:53)
git-committer:
GitHub <noreply@…> (03/04/23 19:33:53)
Message:

Merge pull request #7 from SazdovaEkaterina/create-post

Create Post

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/HomeController.java

    reef07ff rf194b4e  
    11package finki.paw5.web.controllers;
    22
     3import jakarta.servlet.http.HttpServletRequest;
    34import org.springframework.stereotype.Controller;
    45import org.springframework.web.bind.annotation.GetMapping;
     
    1011
    1112    @GetMapping
    12     public String getHomePage(){
     13    public String getHomePage(HttpServletRequest request) {
     14        if(request.getSession().getAttribute("user")==null){
     15            return "redirect:/login";
     16        }
    1317        return "home";
    1418    }
     19
    1520    @GetMapping("/aboutUs")
    16     public String getSuccessPage(){
     21    public String getSuccessPage() {
    1722        return "/aboutUs";
    1823    }
Note: See TracChangeset for help on using the changeset viewer.