Add base project files including environment example, license, README, .gitignore, error classes, ESLint config, database modules, texture assets, repositories, routes, schemas, services, and server entry point. This establishes the foundational structure for a Yggdrasil-compatible REST API with modular error handling, database setup, and route organization.
14 lines
449 B
JavaScript
14 lines
449 B
JavaScript
const express = require("express")
|
|
const router = express.Router()
|
|
|
|
router.get("/giftcode", (req, res) => {
|
|
return res.status(404).json({
|
|
path: "/productvoucher/giftcode",
|
|
errorType: "NOT_FOUND",
|
|
error: "NOT_FOUND",
|
|
errorMessage: "The server has not found anything matching the request URI",
|
|
developerMessage: "The server has not found anything matching the request URI"
|
|
})
|
|
})
|
|
|
|
module.exports = router |