Browse Source

added new route in external controller

pull/24/head
Hendrik Schutter 2 years ago
parent
commit
a98782bc01
  1. 2
      .gitignore
  2. 6
      prototype/src/main/java/org/hso/ecommerce/app/RequestController.java
  3. 35
      prototype/src/main/java/org/hso/ecommerce/controller/intern/suppliers/SupplierOfferController.java

2
.gitignore vendored

@ -91,3 +91,5 @@ local.properties
prototype/*.db
prototype/images
prototype/data

6
prototype/src/main/java/org/hso/ecommerce/app/RequestController.java

@ -89,12 +89,12 @@ public class RequestController {
public String shopSearch() {
return "shop/search";
}
@GetMapping("/intern/")
public String intern() {
return "intern/index";
}
@GetMapping("/intern/listedArticles/")
public String internListedArticles() {
return "intern/listedArticles/index";
@ -156,11 +156,13 @@ public class RequestController {
return "intern/supplierOrders/id";
}
/*
@GetMapping("/intern/suppliersOffers")
public String internSuppliersOffers() {
return "intern/offeredArticles/index";
}
*/
@GetMapping("/intern/accounting/")

35
prototype/src/main/java/org/hso/ecommerce/controller/intern/suppliers/SupplierOfferController.java

@ -1,36 +1,23 @@
package org.hso.ecommerce.controller.intern.suppliers;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
//@RequestMapping("/intern/suppliersOffers")
@RequestMapping("/intern/")
public class SupplierOfferController {
/*
@GetMapping("/")
public String internListedArticles(Model model) {
System.out.println("\n hier \n");
@GetMapping("suppliersOffers")
public String internListedArticles(Model model, HttpSession session) {
System.out.println("\nhier\n");
return "intern/offeredArticles/index";
}
*/
}

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close