mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 10:00:17 -04:00
* Set corejs version in .babelrc so Jest doesn't complain. * Rewrite services/routes in TypeScript. * Add TypeScript definitions for DialogComponent. * Make image paths more portable * Add current route context and hook. * Make EmptyState more flexible by being able to pass in getSteps function. * Rewrite ItemsList in TypeScript. * Introduce the possibility to add custom sorters for a column. * Rearrange props to be friendly to TypeScript. * Type definitions for NotificationApi. * Use Databricks query editor components for databricks_internal type of query runner. * URL Escape password in Alembic configuration. * Compare types in migrations.
15 lines
489 B
JavaScript
15 lines
489 B
JavaScript
import { axios } from "@/services/axios";
|
|
|
|
export const IMG_ROOT = "static/images/destinations";
|
|
|
|
const Destination = {
|
|
query: () => axios.get("api/destinations"),
|
|
get: ({ id }) => axios.get(`api/destinations/${id}`),
|
|
types: () => axios.get("api/destinations/types"),
|
|
create: data => axios.post(`api/destinations`, data),
|
|
save: data => axios.post(`api/destinations/${data.id}`, data),
|
|
delete: ({ id }) => axios.delete(`api/destinations/${id}`),
|
|
};
|
|
|
|
export default Destination;
|