├── .env ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── .vscode └── settings.json ├── README.md ├── nest-cli.json ├── package.json ├── pnpm-lock.yaml ├── prisma ├── migrations │ ├── 20240126181108_create_users_table │ │ └── migration.sql │ └── migration_lock.toml └── schema.prisma ├── src ├── app.controller.spec.ts ├── app.controller.ts ├── app.module.ts ├── app.service.ts ├── auth │ ├── auth.controller.ts │ ├── auth.guard.ts │ ├── auth.module.ts │ ├── auth.service.ts │ └── dto │ │ ├── accessKey.dto.ts │ │ └── signup.dto.ts ├── db │ ├── db.module.ts │ └── prisma.service.ts ├── magic │ ├── dto │ │ └── magic.dto.ts │ ├── magic.controller.ts │ ├── magic.module.ts │ └── magic.service.ts ├── main.ts └── utils │ └── auth.ts ├── test ├── app.e2e-spec.ts └── jest-e2e.json ├── tsconfig.build.json └── tsconfig.json /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/.env -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "jira-plugin.workingProject": "" 3 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/README.md -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /prisma/migrations/20240126181108_create_users_table/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/prisma/migrations/20240126181108_create_users_table/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /src/app.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/app.controller.spec.ts -------------------------------------------------------------------------------- /src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/app.controller.ts -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/app.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/app.service.ts -------------------------------------------------------------------------------- /src/auth/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/auth/auth.controller.ts -------------------------------------------------------------------------------- /src/auth/auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/auth/auth.guard.ts -------------------------------------------------------------------------------- /src/auth/auth.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/auth/auth.module.ts -------------------------------------------------------------------------------- /src/auth/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/auth/auth.service.ts -------------------------------------------------------------------------------- /src/auth/dto/accessKey.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/auth/dto/accessKey.dto.ts -------------------------------------------------------------------------------- /src/auth/dto/signup.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/auth/dto/signup.dto.ts -------------------------------------------------------------------------------- /src/db/db.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/db/db.module.ts -------------------------------------------------------------------------------- /src/db/prisma.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/db/prisma.service.ts -------------------------------------------------------------------------------- /src/magic/dto/magic.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/magic/dto/magic.dto.ts -------------------------------------------------------------------------------- /src/magic/magic.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/magic/magic.controller.ts -------------------------------------------------------------------------------- /src/magic/magic.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/magic/magic.module.ts -------------------------------------------------------------------------------- /src/magic/magic.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/magic/magic.service.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/utils/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/src/utils/auth.ts -------------------------------------------------------------------------------- /test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/test/jest-e2e.json -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipenywis/ai-rest-api/HEAD/tsconfig.json --------------------------------------------------------------------------------