From 057f7ac151496b3b532fbe6e0824ce287d84054e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 19 Sep 2022 07:43:09 +0800 Subject: Move everything up, no more web dir --- web/main.c | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 web/main.c (limited to 'web/main.c') diff --git a/web/main.c b/web/main.c deleted file mode 100644 index e14ebe6..0000000 --- a/web/main.c +++ /dev/null @@ -1,32 +0,0 @@ -#include -#include -#include - -int main(int argc, char *argv[]) -{ - const size_t app_dir_len = strlen(APP_DIR); - static const char *scope_rel = "/shopify.app.toml"; - char scope[app_dir_len + strlen(scope_rel) + 1]; - sprintf(scope, "%s%s", APP_DIR, scope_rel); - static const char *index_rel = "/web/frontend/index.html"; - char index[app_dir_len + strlen(index_rel) + 1]; - sprintf(index, "%s%s", APP_DIR, index_rel); - shopify_app(API_KEY, API_SECRET_KEY, APP_URL, "/auth", APP_ID, scope, - index, (struct shopify_api[]){ - { - "/products", - "GET", - shopify_graphql, - "{"\ - " productCreate() {"\ - " product {"\ - " id"\ - " }"\ - " }"\ - "}" - }, - {} - } - ); - return 0; -} -- cgit v1.2.3