refactor: theme type
This commit is contained in:
parent
dadde1651b
commit
30c253c43c
5 changed files with 20 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue