cityssm/corporate-records-manager

View on GitHub
routes/new.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Router } from "express";

import * as configFns from "../helpers/configFns.js";

import handler_new from "../handlers/new/new.js";
import handler_doCreate from "../handlers/new/doCreate.js";


export const router = Router();


router.get("/", (_request, response) => {
  return response.redirect(configFns.getProperty("reverseProxy.urlPrefix") + "/dashboard");
});

router.post("/doCreate", handler_doCreate);


router.get("/:recordTypeKey", handler_new);


export default router;