diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-19 07:43:09 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-19 07:43:09 +0800 |
commit | 057f7ac151496b3b532fbe6e0824ce287d84054e (patch) | |
tree | 535c8872aae62b6063ed4f66ad9387a4f4c77287 /web | |
parent | 603d4f0f85cac6942996c2c1f74672bd2c562e27 (diff) |
Move everything up, no more web dir
Diffstat (limited to 'web')
-rw-r--r-- | web/Makefile.am | 4 | ||||
-rw-r--r-- | web/configure.ac | 8 | ||||
m--------- | web/frontend | 0 | ||||
-rw-r--r-- | web/main.c | 32 |
4 files changed, 0 insertions, 44 deletions
diff --git a/web/Makefile.am b/web/Makefile.am deleted file mode 100644 index 310bd37..0000000 --- a/web/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -bin_PROGRAMS = shopifyappd -shopifyappd_SOURCES = main.c -shopifyappd_CPPFLAGS = $(DEPS_CFLAGS) -shopifyappd_LDFLAGS = $(DEPS_LIBS) -ltoml -lshopify diff --git a/web/configure.ac b/web/configure.ac deleted file mode 100644 index 7ef439c..0000000 --- a/web/configure.ac +++ /dev/null @@ -1,8 +0,0 @@ -AC_INIT([shopify-app-template-c], [0.0], [erik@darapsa.co.id]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) -AC_PROG_CC -PKG_CHECK_MODULES([DEPS], [libmicrohttpd libgcrypt gnutls libpcre2-8 libcurl json-c]) -AC_FUNC_MALLOC -AC_TYPE_SIZE_T -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT diff --git a/web/frontend b/web/frontend deleted file mode 160000 -Subproject 023d6464cbf37774ea93dd950bda9350179dfab 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 <string.h> -#include <stdio.h> -#include <shopify.h> - -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; -} |