First Usage
import { Server } from '@arcend/core';
const port: number = 4000;
const sv: Server = new Server({port: port, cors: 'http://localhost:3000'});
sv.listen(async() => {
await sv.loadRoutes('routes');
console.log('API listening on: http://localhost:' + port);
});import type { ArcRequest, ArcResponse } from "@arcend/core";
const GET = async(req: ArcRequest, res: ArcResponse) =>
{
return {
query: req.query,
body: req.body,
headers: req.headers,
method: req.method,
path: req.path
};
};
export { GET };Last updated



