summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 248e5b1..97be7a1 100644
--- a/main.c
+++ b/main.c
@@ -11,8 +11,11 @@ int main(int argc, char *argv[])
static const char *index_rel = "/frontend/index.html";
char index[app_dir_len + strlen(index_rel) + 1];
sprintf(index, "%s%s", APP_DIR, index_rel);
+ static const char *js_dir_rel = "/frontend/build";
+ char js_dir[app_dir_len + strlen(js_dir_rel) + 1];
+ sprintf(js_dir, "%s%s", APP_DIR, js_dir_rel);
shopify_app(API_KEY, API_SECRET_KEY, APP_URL, "/auth", APP_ID, scopes,
- index, (struct shopify_api[]){
+ index, js_dir, (struct shopify_api[]){
{
"/products",
"GET",