Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added base

Blue Mouse4e95ea38acae
diff --git a/src/captcha/captcha.controller.spec.ts b/src/captcha/captcha.controller.spec.ts
new file mode 100644
index 000000000..03015c8b7
--- /dev/null
+++ b/src/captcha/captcha.controller.spec.ts
@@ -0,0 +1,18 @@
+import { Test, TestingModule } from '@nestjs/testing'
+import { CaptchaController } from './captcha.controller'
+
+describe('CaptchaController', () => {
+ let controller: CaptchaController
+
+ beforeEach(async () => {
+ const module: TestingModule = await Test.createTestingModule({
+ controllers: [CaptchaController],
+ }).compile()
+
+ controller = module.get<CaptchaController>(CaptchaController)
+ })
+
+ it('should be defined', () => {
+ expect(controller).toBeDefined()
+ })
+})
diff --git a/src/captcha/captcha.controller.ts b/src/captcha/captcha.controller.ts
new file mode 100644
index 000000000..145a946df
--- /dev/null
+++ b/src/captcha/captcha.controller.ts
@@ -0,0 +1,12 @@
+import { Controller } from '@nestjs/common'
+import { CaptchaService } from './captcha.service'
+
+@Controller({
+ version: '1',
+ path: 'captcha',
+})
+export class CaptchaController {
+ constructor(
+ private readonly captchaService: CaptchaService,
+ ) { }
+}
diff --git a/src/captcha/captcha.module.ts b/src/captcha/captcha.module.ts
new file mode 100644
index 000000000..810c93c5a
--- /dev/null
+++ b/src/captcha/captcha.module.ts
@@ -0,0 +1,12 @@
+import { Module, forwardRef } from '@nestjs/common'
+
+import { CaptchaController } from './captcha.controller'
+import { CaptchaService } from './captcha.service'
+
+@Module({
+ imports: [],
+ providers: [CaptchaService],
+ exports: [CaptchaService],
+ controllers: [CaptchaController],
+})
+export class AnalyticsModule {}
diff --git a/src/captcha/captcha.service.ts b/src/captcha/captcha.service.ts
new file mode 100644
index 000000000..227234a70
--- /dev/null
+++ b/src/captcha/captcha.service.ts
@@ -0,0 +1,10 @@
+import {
+ Injectable,
+} from '@nestjs/common'
+
+@Injectable()
+export class CaptchaService {
+ constructor(
+ ) { }
+
+}