webstudio/ui/src/features/topics/topics_repository.ts
2024-08-29 12:26:54 +03:00

6 lines
252 B
TypeScript

import { HttpMethod, HttpRepository } from "../../core/repository/core_http_repository";
export class TopicsHttpRepository extends HttpRepository {
featureApi = "/topics";
getAllTopics = () => this._jsonRequest(HttpMethod.GET, this.featureApi);
}