refactor: theme type

This commit is contained in:
Gabriellvl 2025-04-02 14:29:07 +02:00
parent dadde1651b
commit 30c253c43c
5 changed files with 20 additions and 17 deletions

View file

@ -1,11 +1,12 @@
import { BaseController } from "@/controllers/base-controller.ts";
import type {Theme} from "dwengo-1-common/src/interfaces/theme";
export class ThemeController extends BaseController {
constructor() {
super("theme");
}
async getAll(language: string | null = null): Promise<unknown> {
async getAll(language: string | null = null): Promise<Theme[]> {
const query = language ? { language } : undefined;
return this.get("/", query);
}