<gh_stars>0
import { accountsController } from "./controllers/accounts-controller.js";
import { dashboardController } from "./controllers/dashboard-controller.js";
import { aboutController } from "./controllers/about-controller.js";
import { whereaboutController } from "./controllers/whereabout-controller.js";
import { jobController } from "./controllers/job-controller.js";

export const webRoutes = [
  { method: "GET", path: "/", config: accountsController.index },
  { method: "GET", path: "/signup", config: accountsController.showSignup },
  { method: "GET", path: "/login", config: accountsController.showLogin },
  { method: "GET", path: "/logout", config: accountsController.logout },
  { method: "POST", path: "/register", config: accountsController.signup },
  { method: "POST", path: "/authenticate", config: accountsController.login },

  { method: "GET", path: "/about", config: aboutController.index },

  { method: "GET", path: "/dashboard", config: dashboardController.index },
  { method: "POST", path: "/dashboard/addwhereabout", config: dashboardController.addWhereabout },
  { method: "GET", path: "/dashboard/deletewhereabout/{id}", config: dashboardController.deleteWhereabout },

  { method: "GET", path: "/whereabout/{id}", config: whereaboutController.index },
  { method: "POST", path: "/whereabout/{id}/addjob", config: whereaboutController.addJob },
  { method: "GET", path: "/whereabout/{id}/deletejob/{jobid}", config: whereaboutController.deleteJob },

  { method: "GET", path: "/job/{id}/editjob/{jobid}", config: jobController.index },
  { method: "POST", path: "/job/{id}/updatejob/{jobid}", config: jobController.update },
  

  { method: "GET", path: "/{param*}", handler: { directory: { path: "./public" } }, options: { auth: false } },


];