f794208862
* Fix or comment several ts-ignores * Fix typing related to BaseOverflowButton * Remove unused functionality of useCookbooks, fix usage bug * Fix more typing, add some comments * Only allow ts-ignore if it has a comment
14 lines
392 B
TypeScript
14 lines
392 B
TypeScript
import { BaseCRUDAPI } from "../_base";
|
|
import { UserIn, UserOut } from "~/types/api-types/user";
|
|
|
|
const prefix = "/api";
|
|
|
|
const routes = {
|
|
adminUsers: `${prefix}/admin/users`,
|
|
adminUsersId: (tag: string) => `${prefix}/admin/users/${tag}`,
|
|
};
|
|
|
|
export class AdminUsersApi extends BaseCRUDAPI<UserOut, UserIn> {
|
|
baseRoute: string = routes.adminUsers;
|
|
itemRoute = routes.adminUsersId;
|
|
}
|