This commit is contained in:
Rizky
2024-03-07 16:28:15 +07:00
parent 90678d1fae
commit 084675a811
6 changed files with 160 additions and 4 deletions
+6
View File
@@ -59,6 +59,12 @@ export const createServer = async () => {
await scan(dir(`app/srv/api`));
await scan(dir(`pkgs/api`));
g.createServer = (arg) => {
return async (site_id: string) => {
return arg;
};
};
g.server = Bun.serve({
port: g.port,
maxRequestBodySize: 1024 * 1024 * 128,