# Clone the repo
git clone https://github.com/JoshMerlino/tsx-app -b (master | tailwind | photon) --single-branch -o upstream (my-app)
git branch -m master
Move into your new working directory.
# Install node build tools
sudo apt-get install build-essential -y
# Install node modules
npm install
Create a .ts
file in the ~/api
directory
import { Request, Response } from "express";
export const route = [
"v1/test",
"v1/test/**"
];
export default function api(req: Request, res: Response): void {
res.json({});
}