Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M3-2512 Move Apps Logos #4633

Merged
merged 2 commits into from
Mar 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
26 changes: 26 additions & 0 deletions src/services/cloud_apps/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { API_ROOT } from 'src/constants';
import Request, { setMethod, setParams, setURL, setXFilter } from '../index';

interface CloudApp {
sequence: number;
/**
* will be something like /assets/minecraft.svg
* front-end needs to provide the location
*/
logo_url: string | null;
label: string;
stackscript_id: number;
images: string[];
user_defined_fields: any[];
created: string;
id: number;
}

export const getCloudApps = (params: any, filter: any) => {
return Request<Linode.ResourcePage<CloudApp[]>>(
setURL(`${API_ROOT}beta/linode/one-click-apps`),
setMethod('GET'),
setParams(params),
setXFilter(filter)
).then(response => response.data);
};