This commit is contained in:
Rizky 2023-10-16 12:33:57 +00:00
parent 7a307622d8
commit d4b30272c3
5 changed files with 37 additions and 55 deletions

View File

@ -1,17 +0,0 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
"name": "Prasi",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "oven/bun:alpine"
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

View File

@ -1 +0,0 @@
import { PrismaClient } from "@prisma/client";

View File

@ -5,33 +5,19 @@ export const npm_size = {
args: ["mode","id"],
handler: import("./api/npm-size")
}
export const login = {
name: "login",
url: "/_login",
path: "app/srv/api/auth/login.ts",
args: ["username","password"],
handler: import("./api/auth/login")
}
export const session = {
name: "session",
url: "/session",
path: "app/srv/api/session.ts",
url: "/_session",
path: "app/srv/api/auth/session.ts",
args: [],
handler: import("./api/session")
handler: import("./api/auth/session")
}
export const npm = {
name: "npm",
url: "/npm/:mode/:id/*",
path: "app/srv/api/npm.ts",
args: ["mode","id"],
handler: import("./api/npm")
}
export const local_ip = {
name: "local_ip",
url: "/local-ip",
path: "app/srv/api/local-ip.ts",
args: [],
handler: import("./api/local-ip")
export const site_dts = {
name: "site_dts",
url: "/site-dts/:site_id",
path: "app/srv/api/site-dts.ts",
args: ["site_id"],
handler: import("./api/site-dts")
}
export const npm_bundle = {
name: "npm_bundle",
@ -40,12 +26,26 @@ export const npm_bundle = {
args: ["mode","id"],
handler: import("./api/npm-bundle")
}
export const site_dts = {
name: "site_dts",
url: "/site-dts/:site_id",
path: "app/srv/api/site-dts.ts",
args: ["site_id"],
handler: import("./api/site-dts")
export const npm = {
name: "npm",
url: "/npm/:mode/:id/*",
path: "app/srv/api/npm.ts",
args: ["mode","id"],
handler: import("./api/npm")
}
export const login = {
name: "login",
url: "/_login",
path: "app/srv/api/auth/login.ts",
args: ["username","password"],
handler: import("./api/auth/login")
}
export const local_ip = {
name: "local_ip",
url: "/local-ip",
path: "app/srv/api/local-ip.ts",
args: [],
handler: import("./api/local-ip")
}
export const _upload = {
name: "_upload",
@ -61,13 +61,6 @@ export const _prasi = {
args: [],
handler: import("./api/_prasi")
}
export const _file = {
name: "_file",
url: "/_file/*",
path: "app/srv/api/_file.ts",
args: [],
handler: import("./api/_file")
}
export const _api_frm = {
name: "_api_frm",
url: "/_api_frm",
@ -82,3 +75,10 @@ export const _dbs = {
args: ["dbName","action"],
handler: import("./api/_dbs")
}
export const _file = {
name: "_file",
url: "/_file/*",
path: "app/srv/api/_file.ts",
args: [],
handler: import("./api/_file")
}

BIN
bun.lockb

Binary file not shown.