Skip to content

Beautiful Open-Source Form Builder

Separated laravel app to its own folder (#540)

Julien Nahum5bd1dda504a0
diff --git a/.babelrc b/.babelrc
deleted file mode 100644
index c4701e7d0..000000000
--- a/.babelrc
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "presets": [
- "@babel/preset-env"
- ],
- "plugins": [
- "@babel/plugin-syntax-dynamic-import"
- ]
-}
diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml
index c40587310..beeab703f 100644
--- a/.github/workflows/laravel.yml
+++ b/.github/workflows/laravel.yml
@@ -2,11 +2,10 @@ name: laravel
on:
push:
- branches: [ main ]
+ branches: [main]
pull_request:
jobs:
-
code_lint:
runs-on: ubuntu-latest
name: Run code linters
@@ -36,15 +35,19 @@ jobs:
coverage: none
- name: Prepare the environment
+ working-directory: ./api
run: cp .env.example .env
- name: Install composer dependencies
+ working-directory: ./api
run: composer install --prefer-dist --no-interaction --no-progress --ignore-platform-reqs --optimize-autoloader
- name: Directory permissions
+ working-directory: ./api
run: chmod -R 777 storage bootstrap/cache
- name: Run PHP lint check
+ working-directory: ./api
run: ./vendor/bin/pint --test
tests:
@@ -90,8 +93,8 @@ jobs:
strategy:
fail-fast: true
matrix:
- php: [ 8.2 ]
- connection: [ pgsql, mysql ]
+ php: [8.2]
+ connection: [pgsql, mysql]
include:
- connection: pgsql
host: localhost
@@ -100,7 +103,7 @@ jobs:
password: postgres
database: postgres
- connection: mysql
- host: '127.0.0.1'
+ host: "127.0.0.1"
port: 3306
user: root
password: test
@@ -133,12 +136,14 @@ jobs:
coverage: none
- name: Prepare the environment
- run: cp .env.example .env
+ run: cp api/.env.example api/.env
- name: Install composer dependencies
+ working-directory: ./api
run: composer install --prefer-dist --no-interaction --no-progress --ignore-platform-reqs --optimize-autoloader
- name: Directory permissions
+ working-directory: ./api
run: chmod -R 777 storage bootstrap/cache
- name: Run tests (Unit and Feature)
@@ -154,6 +159,7 @@ jobs:
- name: "Archive log results"
if: always()
uses: actions/upload-artifact@v3
+ working-directory: ./api
with:
name: log results
path: storage/logs/laravel.log
@@ -163,8 +169,8 @@ jobs:
runs-on: ubuntu-latest
name: Build the Nuxt app
defaults:
- run:
- working-directory: ./client
+ run:
+ working-directory: ./client
steps:
- name: Checkout code
uses: actions/checkout@v2
@@ -172,7 +178,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v1
with:
- node-version: '20'
+ node-version: "20"
- uses: actions/cache@v2
with:
@@ -193,7 +199,7 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
production-deploy:
- needs: [ code_lint, tests, build-nuxt-app ]
+ needs: [code_lint, tests, build-nuxt-app]
if: success() && github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
name: Triggers Deployment (Vapor & Amplify)
@@ -230,24 +236,29 @@ jobs:
coverage: none
- name: Prepare the environment
+ working-directory: ./api
run: cp .env.example .env
- name: Install composer dependencies
+ working-directory: ./api
run: composer install --prefer-dist --no-interaction --no-progress --ignore-platform-reqs --optimize-autoloader
- name: Directory permissions
+ working-directory: ./api
run: chmod -R 777 storage bootstrap/cache
- name: Trigger front-end deployment
- run: |
+ run: |
URL="${{ secrets.AMPLIFY_DEPLOY_URL }}"
curl -X POST -d {} "$URL" -H "Content-Type: application/json"
- name: Created encrypted .env file before deployment
+ working-directory: ./api
run: |
- echo "${{ secrets.ENCRYPTED_ENV_FILE }}" >> .env.production.encrypted
+ echo "${{ secrets.ENCRYPTED_ENV_FILE }}" >> .env.production.encrypted
- name: Deploy back-end to production
+ working-directory: ./api
run: php vendor/bin/vapor deploy api-production --commit="${GITHUB_SHA}" --message="${GITHUB_REF}"
env:
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
diff --git a/.gitignore b/.gitignore
index 49ee0c7be..c1996aca4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,33 +1,11 @@
-/node_modules
-/public/hot
-/public/storage
-/storage/*.key
-/storage/clockwork
-/vendor
-.env
-.env.production
-.env.api-production
-.env.backup
-.env.testing
-.env.dusk.local
-.env.api-*
-.phpunit.result.cache
.idea/*
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
phpunit.dusk.xml
-/public/dist
-/public/build
-/public/mix-manifest.json
-/public/sitemap.xml
.DS_Store
public/.DS_Store
*.DS_Store
-.vapor/
-.env.production
-.env.staging
-_ide_helper.php
docker-compose.override.yml
/.make.*
diff --git a/.styleci.yml b/.styleci.yml
deleted file mode 100644
index 9231873a1..000000000
--- a/.styleci.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-php:
- preset: laravel
- disabled:
- - no_unused_imports
- finder:
- not-name:
- - index.php
- - server.php
-js:
- finder:
- not-name:
- - webpack.mix.js
-css: true
diff --git a/README.md b/README.md
index ca25af7bc..e31f67470 100644
--- a/README.md
+++ b/README.md
@@ -103,19 +103,6 @@ OpnForm can be easily set up using Docker. Pre-built images are available on Doc
#### Quick Start
1. Clone the repository:
-<<<<<<< HEAD
-
- ```
- git clone https://github.com/JhumanJ/OpnForm.git
- cd OpnForm
- ```
-
-2. Set up environment files:
-
- ```
- cp .env.docker .env
- cp client/.env.docker client/.env
-=======
```
git clone https://github.com/JhumanJ/OpnForm.git
@@ -126,7 +113,6 @@ OpnForm can be easily set up using Docker. Pre-built images are available on Doc
```bash
./scripts/setup-env.sh --docker
->>>>>>> 0a9400492674212cdabcd4821ee87483b28735e5
```
3. Start the application:
@@ -177,7 +163,7 @@ For development or customization, you can build the Docker images locally:
2. Create a docker-compose override file:
```
- cp docker-compose.override.yml.example docker-compose.override.yml
+ touch docker-compose.override.yml
```
Edit the `docker-compose.override.yml` file to use your locally built images:
@@ -188,6 +174,8 @@ For development or customization, you can build the Docker images locally:
image: opnform-api:local
ui:
image: opnform-ui:local
+ api-worker:
+ image: opnform-api:local
```
3. Start the application:
diff --git a/.env.docker b/api/.env.docker
similarity index 86%
rename from .env.docker
rename to api/.env.docker
index 24925b695..6d2e17c4f 100644
--- a/.env.docker
+++ b/api/.env.docker
@@ -18,11 +18,11 @@ SESSION_LIFETIME=120
MAIL_MAILER=log
MAIL_HOST=
MAIL_PORT=
-MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=
-MAIL_FROM_ADDRESS=
-MAIL_FROM_NAME=
+MAIL_FROM_NAME=OpnForm
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
diff --git a/.env.example b/api/.env.example
similarity index 100%
rename from .env.example
rename to api/.env.example
diff --git a/api/.gitignore b/api/.gitignore
new file mode 100644
index 000000000..c4b7dd800
--- /dev/null
+++ b/api/.gitignore
@@ -0,0 +1,34 @@
+/node_modules
+/public/hot
+/public/storage
+/storage/*.key
+/storage/clockwork
+/vendor
+.env
+.env.production
+.env.api-production
+.env.backup
+.env.testing
+.env.dusk.local
+.env.api-*
+.env.docker.local
+.phpunit.result.cache
+.idea/*
+Homestead.json
+Homestead.yaml
+npm-debug.log
+yarn-error.log
+phpunit.dusk.xml
+/public/dist
+/public/build
+/public/mix-manifest.json
+/public/sitemap.xml
+.DS_Store
+public/.DS_Store
+*.DS_Store
+.vapor/
+.env.production
+.env.staging
+_ide_helper.php
+docker-compose.override.yml
+/.make.*
diff --git a/_ide_helper_models.php b/api/_ide_helper_models.php
similarity index 100%
rename from _ide_helper_models.php
rename to api/_ide_helper_models.php
diff --git a/app/Console/Commands/CleanDatabase.php b/api/app/Console/Commands/CleanDatabase.php
similarity index 100%
rename from app/Console/Commands/CleanDatabase.php
rename to api/app/Console/Commands/CleanDatabase.php
diff --git a/app/Console/Commands/CleanIntegrationEvents.php b/api/app/Console/Commands/CleanIntegrationEvents.php
similarity index 100%
rename from app/Console/Commands/CleanIntegrationEvents.php
rename to api/app/Console/Commands/CleanIntegrationEvents.php
diff --git a/app/Console/Commands/GenerateTemplate.php b/api/app/Console/Commands/GenerateTemplate.php
similarity index 100%
rename from app/Console/Commands/GenerateTemplate.php
rename to api/app/Console/Commands/GenerateTemplate.php
diff --git a/app/Console/Commands/InitProjectCommand.php b/api/app/Console/Commands/InitProjectCommand.php
similarity index 100%
rename from app/Console/Commands/InitProjectCommand.php
rename to api/app/Console/Commands/InitProjectCommand.php
diff --git a/app/Console/Commands/Tax/GenerateTaxExport.php b/api/app/Console/Commands/Tax/GenerateTaxExport.php
similarity index 100%
rename from app/Console/Commands/Tax/GenerateTaxExport.php
rename to api/app/Console/Commands/Tax/GenerateTaxExport.php
diff --git a/app/Console/Kernel.php b/api/app/Console/Kernel.php
similarity index 100%
rename from app/Console/Kernel.php
rename to api/app/Console/Kernel.php
diff --git a/app/Enums/AccessTokenAbility.php b/api/app/Enums/AccessTokenAbility.php
similarity index 100%
rename from app/Enums/AccessTokenAbility.php
rename to api/app/Enums/AccessTokenAbility.php
diff --git a/app/Events/Billing/SubscriptionCreated.php b/api/app/Events/Billing/SubscriptionCreated.php
similarity index 100%
rename from app/Events/Billing/SubscriptionCreated.php
rename to api/app/Events/Billing/SubscriptionCreated.php
diff --git a/app/Events/Billing/SubscriptionUpdated.php b/api/app/Events/Billing/SubscriptionUpdated.php
similarity index 100%
rename from app/Events/Billing/SubscriptionUpdated.php
rename to api/app/Events/Billing/SubscriptionUpdated.php
diff --git a/app/Events/Forms/FormSubmitted.php b/api/app/Events/Forms/FormSubmitted.php
similarity index 100%
rename from app/Events/Forms/FormSubmitted.php
rename to api/app/Events/Forms/FormSubmitted.php
diff --git a/app/Events/Models/FormCreated.php b/api/app/Events/Models/FormCreated.php
similarity index 100%
rename from app/Events/Models/FormCreated.php
rename to api/app/Events/Models/FormCreated.php
diff --git a/app/Events/Models/FormIntegrationCreated.php b/api/app/Events/Models/FormIntegrationCreated.php
similarity index 100%
rename from app/Events/Models/FormIntegrationCreated.php
rename to api/app/Events/Models/FormIntegrationCreated.php
diff --git a/app/Events/Models/FormIntegrationsEventCreated.php b/api/app/Events/Models/FormIntegrationsEventCreated.php
similarity index 100%
rename from app/Events/Models/FormIntegrationsEventCreated.php
rename to api/app/Events/Models/FormIntegrationsEventCreated.php
diff --git a/app/Exceptions/EmailTakenException.php b/api/app/Exceptions/EmailTakenException.php
similarity index 100%
rename from app/Exceptions/EmailTakenException.php
rename to api/app/Exceptions/EmailTakenException.php
diff --git a/app/Exceptions/Handler.php b/api/app/Exceptions/Handler.php
similarity index 100%
rename from app/Exceptions/Handler.php
rename to api/app/Exceptions/Handler.php
diff --git a/app/Exceptions/VerifyEmailException.php b/api/app/Exceptions/VerifyEmailException.php
similarity index 100%
rename from app/Exceptions/VerifyEmailException.php
rename to api/app/Exceptions/VerifyEmailException.php
diff --git a/app/Exceptions/Workspaces/WorkspaceAlreadyExisting.php b/api/app/Exceptions/Workspaces/WorkspaceAlreadyExisting.php
similarity index 100%
rename from app/Exceptions/Workspaces/WorkspaceAlreadyExisting.php
rename to api/app/Exceptions/Workspaces/WorkspaceAlreadyExisting.php
diff --git a/app/Exceptions/Workspaces/WorkspaceLimit.php b/api/app/Exceptions/Workspaces/WorkspaceLimit.php
similarity index 100%
rename from app/Exceptions/Workspaces/WorkspaceLimit.php
rename to api/app/Exceptions/Workspaces/WorkspaceLimit.php
diff --git a/app/Exports/FormSubmissionExport.php b/api/app/Exports/FormSubmissionExport.php
similarity index 100%
rename from app/Exports/FormSubmissionExport.php
rename to api/app/Exports/FormSubmissionExport.php
diff --git a/app/Exports/Tax/ArrayExport.php b/api/app/Exports/Tax/ArrayExport.php
similarity index 100%
rename from app/Exports/Tax/ArrayExport.php
rename to api/app/Exports/Tax/ArrayExport.php
diff --git a/app/Http/Controllers/Admin/AdminController.php b/api/app/Http/Controllers/Admin/AdminController.php
similarity index 100%
rename from app/Http/Controllers/Admin/AdminController.php
rename to api/app/Http/Controllers/Admin/AdminController.php
diff --git a/app/Http/Controllers/Admin/BillingController.php b/api/app/Http/Controllers/Admin/BillingController.php
similarity index 100%
rename from app/Http/Controllers/Admin/BillingController.php
rename to api/app/Http/Controllers/Admin/BillingController.php
diff --git a/app/Http/Controllers/Admin/FormController.php b/api/app/Http/Controllers/Admin/FormController.php
similarity index 100%
rename from app/Http/Controllers/Admin/FormController.php
rename to api/app/Http/Controllers/Admin/FormController.php
diff --git a/app/Http/Controllers/Admin/ImpersonationController.php b/api/app/Http/Controllers/Admin/ImpersonationController.php
similarity index 100%
rename from app/Http/Controllers/Admin/ImpersonationController.php
rename to api/app/Http/Controllers/Admin/ImpersonationController.php
diff --git a/app/Http/Controllers/Auth/AppSumoAuthController.php b/api/app/Http/Controllers/Auth/AppSumoAuthController.php
similarity index 100%
rename from app/Http/Controllers/Auth/AppSumoAuthController.php
rename to api/app/Http/Controllers/Auth/AppSumoAuthController.php
diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/api/app/Http/Controllers/Auth/ForgotPasswordController.php
similarity index 100%
rename from app/Http/Controllers/Auth/ForgotPasswordController.php
rename to api/app/Http/Controllers/Auth/ForgotPasswordController.php
diff --git a/app/Http/Controllers/Auth/LoginController.php b/api/app/Http/Controllers/Auth/LoginController.php
similarity index 100%
rename from app/Http/Controllers/Auth/LoginController.php
rename to api/app/Http/Controllers/Auth/LoginController.php
diff --git a/app/Http/Controllers/Auth/OAuthController.php b/api/app/Http/Controllers/Auth/OAuthController.php
similarity index 100%
rename from app/Http/Controllers/Auth/OAuthController.php
rename to api/app/Http/Controllers/Auth/OAuthController.php
diff --git a/app/Http/Controllers/Auth/RegisterController.php b/api/app/Http/Controllers/Auth/RegisterController.php
similarity index 100%
rename from app/Http/Controllers/Auth/RegisterController.php
rename to api/app/Http/Controllers/Auth/RegisterController.php
diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/api/app/Http/Controllers/Auth/ResetPasswordController.php
similarity index 100%
rename from app/Http/Controllers/Auth/ResetPasswordController.php
rename to api/app/Http/Controllers/Auth/ResetPasswordController.php
diff --git a/app/Http/Controllers/Auth/UserController.php b/api/app/Http/Controllers/Auth/UserController.php
similarity index 100%
rename from app/Http/Controllers/Auth/UserController.php
rename to api/app/Http/Controllers/Auth/UserController.php
diff --git a/app/Http/Controllers/Auth/VerificationController.php b/api/app/Http/Controllers/Auth/VerificationController.php
similarity index 100%
rename from app/Http/Controllers/Auth/VerificationController.php
rename to api/app/Http/Controllers/Auth/VerificationController.php
diff --git a/app/Http/Controllers/CaddyController.php b/api/app/Http/Controllers/CaddyController.php
similarity index 100%
rename from app/Http/Controllers/CaddyController.php
rename to api/app/Http/Controllers/CaddyController.php
diff --git a/app/Http/Controllers/Content/ChangelogController.php b/api/app/Http/Controllers/Content/ChangelogController.php
similarity index 100%
rename from app/Http/Controllers/Content/ChangelogController.php
rename to api/app/Http/Controllers/Content/ChangelogController.php
diff --git a/app/Http/Controllers/Content/FileUploadController.php b/api/app/Http/Controllers/Content/FileUploadController.php
similarity index 100%
rename from app/Http/Controllers/Content/FileUploadController.php
rename to api/app/Http/Controllers/Content/FileUploadController.php
diff --git a/app/Http/Controllers/Content/SignedStorageUrlController.php b/api/app/Http/Controllers/Content/SignedStorageUrlController.php
similarity index 100%
rename from app/Http/Controllers/Content/SignedStorageUrlController.php
rename to api/app/Http/Controllers/Content/SignedStorageUrlController.php
diff --git a/app/Http/Controllers/Controller.php b/api/app/Http/Controllers/Controller.php
similarity index 100%
rename from app/Http/Controllers/Controller.php
rename to api/app/Http/Controllers/Controller.php
diff --git a/app/Http/Controllers/FontsController.php b/api/app/Http/Controllers/FontsController.php
similarity index 100%
rename from app/Http/Controllers/FontsController.php
rename to api/app/Http/Controllers/FontsController.php
diff --git a/app/Http/Controllers/Forms/AiFormController.php b/api/app/Http/Controllers/Forms/AiFormController.php
similarity index 100%
rename from app/Http/Controllers/Forms/AiFormController.php
rename to api/app/Http/Controllers/Forms/AiFormController.php
diff --git a/app/Http/Controllers/Forms/FormController.php b/api/app/Http/Controllers/Forms/FormController.php
similarity index 100%
rename from app/Http/Controllers/Forms/FormController.php
rename to api/app/Http/Controllers/Forms/FormController.php
diff --git a/app/Http/Controllers/Forms/FormStatsController.php b/api/app/Http/Controllers/Forms/FormStatsController.php
similarity index 100%
rename from app/Http/Controllers/Forms/FormStatsController.php
rename to api/app/Http/Controllers/Forms/FormStatsController.php
diff --git a/app/Http/Controllers/Forms/FormSubmissionController.php b/api/app/Http/Controllers/Forms/FormSubmissionController.php
similarity index 100%
rename from app/Http/Controllers/Forms/FormSubmissionController.php
rename to api/app/Http/Controllers/Forms/FormSubmissionController.php
diff --git a/app/Http/Controllers/Forms/Integration/FormIntegrationsController.php b/api/app/Http/Controllers/Forms/Integration/FormIntegrationsController.php
similarity index 100%
rename from app/Http/Controllers/Forms/Integration/FormIntegrationsController.php
rename to api/app/Http/Controllers/Forms/Integration/FormIntegrationsController.php
diff --git a/app/Http/Controllers/Forms/Integration/FormIntegrationsEventController.php b/api/app/Http/Controllers/Forms/Integration/FormIntegrationsEventController.php
similarity index 100%
rename from app/Http/Controllers/Forms/Integration/FormIntegrationsEventController.php
rename to api/app/Http/Controllers/Forms/Integration/FormIntegrationsEventController.php
diff --git a/app/Http/Controllers/Forms/Integration/FormZapierWebhookController.php b/api/app/Http/Controllers/Forms/Integration/FormZapierWebhookController.php
similarity index 100%
rename from app/Http/Controllers/Forms/Integration/FormZapierWebhookController.php
rename to api/app/Http/Controllers/Forms/Integration/FormZapierWebhookController.php
diff --git a/app/Http/Controllers/Forms/PublicFormController.php b/api/app/Http/Controllers/Forms/PublicFormController.php
similarity index 100%
rename from app/Http/Controllers/Forms/PublicFormController.php
rename to api/app/Http/Controllers/Forms/PublicFormController.php
diff --git a/app/Http/Controllers/Forms/RecordController.php b/api/app/Http/Controllers/Forms/RecordController.php
similarity index 100%
rename from app/Http/Controllers/Forms/RecordController.php
rename to api/app/Http/Controllers/Forms/RecordController.php
diff --git a/app/Http/Controllers/Integrations/Zapier/IntegrationController.php b/api/app/Http/Controllers/Integrations/Zapier/IntegrationController.php
similarity index 100%
rename from app/Http/Controllers/Integrations/Zapier/IntegrationController.php
rename to api/app/Http/Controllers/Integrations/Zapier/IntegrationController.php
diff --git a/app/Http/Controllers/Integrations/Zapier/ListFormsController.php b/api/app/Http/Controllers/Integrations/Zapier/ListFormsController.php
similarity index 100%
rename from app/Http/Controllers/Integrations/Zapier/ListFormsController.php
rename to api/app/Http/Controllers/Integrations/Zapier/ListFormsController.php
diff --git a/app/Http/Controllers/Integrations/Zapier/ListWorkspacesController.php b/api/app/Http/Controllers/Integrations/Zapier/ListWorkspacesController.php
similarity index 100%
rename from app/Http/Controllers/Integrations/Zapier/ListWorkspacesController.php
rename to api/app/Http/Controllers/Integrations/Zapier/ListWorkspacesController.php
diff --git a/app/Http/Controllers/Integrations/Zapier/ValidateAuthController.php b/api/app/Http/Controllers/Integrations/Zapier/ValidateAuthController.php
similarity index 100%
rename from app/Http/Controllers/Integrations/Zapier/ValidateAuthController.php
rename to api/app/Http/Controllers/Integrations/Zapier/ValidateAuthController.php
diff --git a/app/Http/Controllers/Settings/OAuthProviderController.php b/api/app/Http/Controllers/Settings/OAuthProviderController.php
similarity index 100%
rename from app/Http/Controllers/Settings/OAuthProviderController.php
rename to api/app/Http/Controllers/Settings/OAuthProviderController.php
diff --git a/app/Http/Controllers/Settings/PasswordController.php b/api/app/Http/Controllers/Settings/PasswordController.php
similarity index 100%
rename from app/Http/Controllers/Settings/PasswordController.php
rename to api/app/Http/Controllers/Settings/PasswordController.php
diff --git a/app/Http/Controllers/Settings/ProfileController.php b/api/app/Http/Controllers/Settings/ProfileController.php
similarity index 100%
rename from app/Http/Controllers/Settings/ProfileController.php
rename to api/app/Http/Controllers/Settings/ProfileController.php
diff --git a/app/Http/Controllers/Settings/TokenController.php b/api/app/Http/Controllers/Settings/TokenController.php
similarity index 100%
rename from app/Http/Controllers/Settings/TokenController.php
rename to api/app/Http/Controllers/Settings/TokenController.php
diff --git a/app/Http/Controllers/SitemapController.php b/api/app/Http/Controllers/SitemapController.php
similarity index 100%
rename from app/Http/Controllers/SitemapController.php
rename to api/app/Http/Controllers/SitemapController.php
diff --git a/app/Http/Controllers/SubscriptionController.php b/api/app/Http/Controllers/SubscriptionController.php
similarity index 100%
rename from app/Http/Controllers/SubscriptionController.php
rename to api/app/Http/Controllers/SubscriptionController.php
diff --git a/app/Http/Controllers/TemplateController.php b/api/app/Http/Controllers/TemplateController.php
similarity index 100%
rename from app/Http/Controllers/TemplateController.php
rename to api/app/Http/Controllers/TemplateController.php
diff --git a/app/Http/Controllers/UserInviteController.php b/api/app/Http/Controllers/UserInviteController.php
similarity index 100%
rename from app/Http/Controllers/UserInviteController.php
rename to api/app/Http/Controllers/UserInviteController.php
diff --git a/app/Http/Controllers/Webhook/AppSumoController.php b/api/app/Http/Controllers/Webhook/AppSumoController.php
similarity index 100%
rename from app/Http/Controllers/Webhook/AppSumoController.php
rename to api/app/Http/Controllers/Webhook/AppSumoController.php
diff --git a/app/Http/Controllers/Webhook/StripeController.php b/api/app/Http/Controllers/Webhook/StripeController.php
similarity index 100%
rename from app/Http/Controllers/Webhook/StripeController.php
rename to api/app/Http/Controllers/Webhook/StripeController.php
diff --git a/app/Http/Controllers/WorkspaceController.php b/api/app/Http/Controllers/WorkspaceController.php
similarity index 100%
rename from app/Http/Controllers/WorkspaceController.php
rename to api/app/Http/Controllers/WorkspaceController.php
diff --git a/app/Http/Controllers/WorkspaceUserController.php b/api/app/Http/Controllers/WorkspaceUserController.php
similarity index 100%
rename from app/Http/Controllers/WorkspaceUserController.php
rename to api/app/Http/Controllers/WorkspaceUserController.php
diff --git a/app/Http/Kernel.php b/api/app/Http/Kernel.php
similarity index 100%
rename from app/Http/Kernel.php
rename to api/app/Http/Kernel.php
diff --git a/app/Http/Middleware/AcceptsJsonMiddleware.php b/api/app/Http/Middleware/AcceptsJsonMiddleware.php
similarity index 100%
rename from app/Http/Middleware/AcceptsJsonMiddleware.php
rename to api/app/Http/Middleware/AcceptsJsonMiddleware.php
diff --git a/app/Http/Middleware/Authenticate.php b/api/app/Http/Middleware/Authenticate.php
similarity index 100%
rename from app/Http/Middleware/Authenticate.php
rename to api/app/Http/Middleware/Authenticate.php
diff --git a/app/Http/Middleware/AuthenticateJWT.php b/api/app/Http/Middleware/AuthenticateJWT.php
similarity index 100%
rename from app/Http/Middleware/AuthenticateJWT.php
rename to api/app/Http/Middleware/AuthenticateJWT.php
diff --git a/app/Http/Middleware/CaddyRequestMiddleware.php b/api/app/Http/Middleware/CaddyRequestMiddleware.php
similarity index 100%
rename from app/Http/Middleware/CaddyRequestMiddleware.php
rename to api/app/Http/Middleware/CaddyRequestMiddleware.php
diff --git a/app/Http/Middleware/CustomDomainRestriction.php b/api/app/Http/Middleware/CustomDomainRestriction.php
similarity index 100%
rename from app/Http/Middleware/CustomDomainRestriction.php
rename to api/app/Http/Middleware/CustomDomainRestriction.php
diff --git a/app/Http/Middleware/EncryptCookies.php b/api/app/Http/Middleware/EncryptCookies.php
similarity index 100%
rename from app/Http/Middleware/EncryptCookies.php
rename to api/app/Http/Middleware/EncryptCookies.php
diff --git a/app/Http/Middleware/Form/ProForm.php b/api/app/Http/Middleware/Form/ProForm.php
similarity index 100%
rename from app/Http/Middleware/Form/ProForm.php
rename to api/app/Http/Middleware/Form/ProForm.php
diff --git a/app/Http/Middleware/Form/ProtectedForm.php b/api/app/Http/Middleware/Form/ProtectedForm.php
similarity index 100%
rename from app/Http/Middleware/Form/ProtectedForm.php
rename to api/app/Http/Middleware/Form/ProtectedForm.php
diff --git a/app/Http/Middleware/Form/ResolveFormMiddleware.php b/api/app/Http/Middleware/Form/ResolveFormMiddleware.php
similarity index 100%
rename from app/Http/Middleware/Form/ResolveFormMiddleware.php
rename to api/app/Http/Middleware/Form/ResolveFormMiddleware.php
diff --git a/app/Http/Middleware/ImpersonationMiddleware.php b/api/app/Http/Middleware/ImpersonationMiddleware.php
similarity index 100%
rename from app/Http/Middleware/ImpersonationMiddleware.php
rename to api/app/Http/Middleware/ImpersonationMiddleware.php
diff --git a/app/Http/Middleware/IsAdmin.php b/api/app/Http/Middleware/IsAdmin.php
similarity index 100%
rename from app/Http/Middleware/IsAdmin.php
rename to api/app/Http/Middleware/IsAdmin.php
diff --git a/app/Http/Middleware/IsModerator.php b/api/app/Http/Middleware/IsModerator.php
similarity index 100%
rename from app/Http/Middleware/IsModerator.php
rename to api/app/Http/Middleware/IsModerator.php
diff --git a/app/Http/Middleware/IsNotSubscribed.php b/api/app/Http/Middleware/IsNotSubscribed.php
similarity index 100%
rename from app/Http/Middleware/IsNotSubscribed.php
rename to api/app/Http/Middleware/IsNotSubscribed.php
diff --git a/app/Http/Middleware/IsSubscribed.php b/api/app/Http/Middleware/IsSubscribed.php
similarity index 100%
rename from app/Http/Middleware/IsSubscribed.php
rename to api/app/Http/Middleware/IsSubscribed.php
diff --git a/app/Http/Middleware/PreventRequestsDuringMaintenance.php b/api/app/Http/Middleware/PreventRequestsDuringMaintenance.php
similarity index 100%
rename from app/Http/Middleware/PreventRequestsDuringMaintenance.php
rename to api/app/Http/Middleware/PreventRequestsDuringMaintenance.php
diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/api/app/Http/Middleware/RedirectIfAuthenticated.php
similarity index 100%
rename from app/Http/Middleware/RedirectIfAuthenticated.php
rename to api/app/Http/Middleware/RedirectIfAuthenticated.php
diff --git a/app/Http/Middleware/SelfHostedCredentialsMiddleware.php b/api/app/Http/Middleware/SelfHostedCredentialsMiddleware.php
similarity index 100%
rename from app/Http/Middleware/SelfHostedCredentialsMiddleware.php
rename to api/app/Http/Middleware/SelfHostedCredentialsMiddleware.php
diff --git a/app/Http/Middleware/SetLocale.php b/api/app/Http/Middleware/SetLocale.php
similarity index 100%
rename from app/Http/Middleware/SetLocale.php
rename to api/app/Http/Middleware/SetLocale.php
diff --git a/app/Http/Middleware/TrimStrings.php b/api/app/Http/Middleware/TrimStrings.php
similarity index 100%
rename from app/Http/Middleware/TrimStrings.php
rename to api/app/Http/Middleware/TrimStrings.php
diff --git a/app/Http/Middleware/TrustHosts.php b/api/app/Http/Middleware/TrustHosts.php
similarity index 100%
rename from app/Http/Middleware/TrustHosts.php
rename to api/app/Http/Middleware/TrustHosts.php
diff --git a/app/Http/Middleware/TrustProxies.php b/api/app/Http/Middleware/TrustProxies.php
similarity index 100%
rename from app/Http/Middleware/TrustProxies.php
rename to api/app/Http/Middleware/TrustProxies.php
diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/api/app/Http/Middleware/VerifyCsrfToken.php
similarity index 100%
rename from app/Http/Middleware/VerifyCsrfToken.php
rename to api/app/Http/Middleware/VerifyCsrfToken.php
diff --git a/app/Http/Requests/AiGenerateFormRequest.php b/api/app/Http/Requests/AiGenerateFormRequest.php
similarity index 100%
rename from app/Http/Requests/AiGenerateFormRequest.php
rename to api/app/Http/Requests/AiGenerateFormRequest.php
diff --git a/app/Http/Requests/AnswerFormRequest.php b/api/app/Http/Requests/AnswerFormRequest.php
similarity index 100%
rename from app/Http/Requests/AnswerFormRequest.php
rename to api/app/Http/Requests/AnswerFormRequest.php
diff --git a/app/Http/Requests/CreateTokenRequest.php b/api/app/Http/Requests/CreateTokenRequest.php
similarity index 100%
rename from app/Http/Requests/CreateTokenRequest.php
rename to api/app/Http/Requests/CreateTokenRequest.php
diff --git a/app/Http/Requests/Integration/FormIntegrationsRequest.php b/api/app/Http/Requests/Integration/FormIntegrationsRequest.php
similarity index 100%
rename from app/Http/Requests/Integration/FormIntegrationsRequest.php
rename to api/app/Http/Requests/Integration/FormIntegrationsRequest.php
diff --git a/app/Http/Requests/Integration/StoreFormZapierWebhookRequest.php b/api/app/Http/Requests/Integration/StoreFormZapierWebhookRequest.php
similarity index 100%
rename from app/Http/Requests/Integration/StoreFormZapierWebhookRequest.php
rename to api/app/Http/Requests/Integration/StoreFormZapierWebhookRequest.php
diff --git a/app/Http/Requests/Integration/Zapier/PollSubmissionRequest.php b/api/app/Http/Requests/Integration/Zapier/PollSubmissionRequest.php
similarity index 100%
rename from app/Http/Requests/Integration/Zapier/PollSubmissionRequest.php
rename to api/app/Http/Requests/Integration/Zapier/PollSubmissionRequest.php
diff --git a/app/Http/Requests/StoreFormRequest.php b/api/app/Http/Requests/StoreFormRequest.php
similarity index 100%
rename from app/Http/Requests/StoreFormRequest.php
rename to api/app/Http/Requests/StoreFormRequest.php
diff --git a/app/Http/Requests/Subscriptions/UpdateStripeDetailsRequest.php b/api/app/Http/Requests/Subscriptions/UpdateStripeDetailsRequest.php
similarity index 100%
rename from app/Http/Requests/Subscriptions/UpdateStripeDetailsRequest.php
rename to api/app/Http/Requests/Subscriptions/UpdateStripeDetailsRequest.php
diff --git a/app/Http/Requests/Templates/FormTemplateRequest.php b/api/app/Http/Requests/Templates/FormTemplateRequest.php
similarity index 100%
rename from app/Http/Requests/Templates/FormTemplateRequest.php
rename to api/app/Http/Requests/Templates/FormTemplateRequest.php
diff --git a/app/Http/Requests/UpdateFormRequest.php b/api/app/Http/Requests/UpdateFormRequest.php
similarity index 100%
rename from app/Http/Requests/UpdateFormRequest.php
rename to api/app/Http/Requests/UpdateFormRequest.php
diff --git a/app/Http/Requests/UploadAssetRequest.php b/api/app/Http/Requests/UploadAssetRequest.php
similarity index 100%
rename from app/Http/Requests/UploadAssetRequest.php
rename to api/app/Http/Requests/UploadAssetRequest.php
diff --git a/app/Http/Requests/UserFormRequest.php b/api/app/Http/Requests/UserFormRequest.php
similarity index 100%
rename from app/Http/Requests/UserFormRequest.php
rename to api/app/Http/Requests/UserFormRequest.php
diff --git a/app/Http/Requests/Workspace/CustomDomainRequest.php b/api/app/Http/Requests/Workspace/CustomDomainRequest.php
similarity index 100%
rename from app/Http/Requests/Workspace/CustomDomainRequest.php
rename to api/app/Http/Requests/Workspace/CustomDomainRequest.php
diff --git a/app/Http/Requests/Zapier/CreateIntegrationRequest.php b/api/app/Http/Requests/Zapier/CreateIntegrationRequest.php
similarity index 100%
rename from app/Http/Requests/Zapier/CreateIntegrationRequest.php
rename to api/app/Http/Requests/Zapier/CreateIntegrationRequest.php
diff --git a/app/Http/Requests/Zapier/DeleteIntegrationRequest.php b/api/app/Http/Requests/Zapier/DeleteIntegrationRequest.php
similarity index 100%
rename from app/Http/Requests/Zapier/DeleteIntegrationRequest.php
rename to api/app/Http/Requests/Zapier/DeleteIntegrationRequest.php
diff --git a/app/Http/Requests/Zapier/ListFormsRequest.php b/api/app/Http/Requests/Zapier/ListFormsRequest.php
similarity index 100%
rename from app/Http/Requests/Zapier/ListFormsRequest.php
rename to api/app/Http/Requests/Zapier/ListFormsRequest.php
diff --git a/app/Http/Resources/FormIntegrationResource.php b/api/app/Http/Resources/FormIntegrationResource.php
similarity index 100%
rename from app/Http/Resources/FormIntegrationResource.php
rename to api/app/Http/Resources/FormIntegrationResource.php
diff --git a/app/Http/Resources/FormIntegrationsEventResource.php b/api/app/Http/Resources/FormIntegrationsEventResource.php
similarity index 100%
rename from app/Http/Resources/FormIntegrationsEventResource.php
rename to api/app/Http/Resources/FormIntegrationsEventResource.php
diff --git a/app/Http/Resources/FormResource.php b/api/app/Http/Resources/FormResource.php
similarity index 100%
rename from app/Http/Resources/FormResource.php
rename to api/app/Http/Resources/FormResource.php
diff --git a/app/Http/Resources/FormSubmissionResource.php b/api/app/Http/Resources/FormSubmissionResource.php
similarity index 100%
rename from app/Http/Resources/FormSubmissionResource.php
rename to api/app/Http/Resources/FormSubmissionResource.php
diff --git a/app/Http/Resources/FormTemplateResource.php b/api/app/Http/Resources/FormTemplateResource.php
similarity index 100%
rename from app/Http/Resources/FormTemplateResource.php
rename to api/app/Http/Resources/FormTemplateResource.php
diff --git a/app/Http/Resources/OAuthProviderResource.php b/api/app/Http/Resources/OAuthProviderResource.php
similarity index 100%
rename from app/Http/Resources/OAuthProviderResource.php
rename to api/app/Http/Resources/OAuthProviderResource.php
diff --git a/app/Http/Resources/OAuthProviderUserResource.php b/api/app/Http/Resources/OAuthProviderUserResource.php
similarity index 100%
rename from app/Http/Resources/OAuthProviderUserResource.php
rename to api/app/Http/Resources/OAuthProviderUserResource.php
diff --git a/app/Http/Resources/TokenResource.php b/api/app/Http/Resources/TokenResource.php
similarity index 100%
rename from app/Http/Resources/TokenResource.php
rename to api/app/Http/Resources/TokenResource.php
diff --git a/app/Http/Resources/UserResource.php b/api/app/Http/Resources/UserResource.php
similarity index 100%
rename from app/Http/Resources/UserResource.php
rename to api/app/Http/Resources/UserResource.php
diff --git a/app/Http/Resources/WorkspaceResource.php b/api/app/Http/Resources/WorkspaceResource.php
similarity index 100%
rename from app/Http/Resources/WorkspaceResource.php
rename to api/app/Http/Resources/WorkspaceResource.php
diff --git a/app/Http/Resources/Zapier/FormResource.php b/api/app/Http/Resources/Zapier/FormResource.php
similarity index 100%
rename from app/Http/Resources/Zapier/FormResource.php
rename to api/app/Http/Resources/Zapier/FormResource.php
diff --git a/app/Http/Resources/Zapier/WorkspaceResource.php b/api/app/Http/Resources/Zapier/WorkspaceResource.php
similarity index 100%
rename from app/Http/Resources/Zapier/WorkspaceResource.php
rename to api/app/Http/Resources/Zapier/WorkspaceResource.php
diff --git a/app/Integrations/Data/SpreadsheetData.php b/api/app/Integrations/Data/SpreadsheetData.php
similarity index 100%
rename from app/Integrations/Data/SpreadsheetData.php
rename to api/app/Integrations/Data/SpreadsheetData.php
diff --git a/app/Integrations/Google/Google.php b/api/app/Integrations/Google/Google.php
similarity index 100%
rename from app/Integrations/Google/Google.php
rename to api/app/Integrations/Google/Google.php
diff --git a/app/Integrations/Google/Sheets/SpreadsheetManager.php b/api/app/Integrations/Google/Sheets/SpreadsheetManager.php
similarity index 100%
rename from app/Integrations/Google/Sheets/SpreadsheetManager.php
rename to api/app/Integrations/Google/Sheets/SpreadsheetManager.php
diff --git a/app/Integrations/Handlers/AbstractIntegrationHandler.php b/api/app/Integrations/Handlers/AbstractIntegrationHandler.php
similarity index 100%
rename from app/Integrations/Handlers/AbstractIntegrationHandler.php
rename to api/app/Integrations/Handlers/AbstractIntegrationHandler.php
diff --git a/app/Integrations/Handlers/DiscordIntegration.php b/api/app/Integrations/Handlers/DiscordIntegration.php
similarity index 100%
rename from app/Integrations/Handlers/DiscordIntegration.php
rename to api/app/Integrations/Handlers/DiscordIntegration.php
diff --git a/app/Integrations/Handlers/EmailIntegration.php b/api/app/Integrations/Handlers/EmailIntegration.php
similarity index 100%
rename from app/Integrations/Handlers/EmailIntegration.php
rename to api/app/Integrations/Handlers/EmailIntegration.php
diff --git a/app/Integrations/Handlers/Events/AbstractIntegrationCreated.php b/api/app/Integrations/Handlers/Events/AbstractIntegrationCreated.php
similarity index 100%
rename from app/Integrations/Handlers/Events/AbstractIntegrationCreated.php
rename to api/app/Integrations/Handlers/Events/AbstractIntegrationCreated.php
diff --git a/app/Integrations/Handlers/Events/GoogleSheetsIntegrationCreated.php b/api/app/Integrations/Handlers/Events/GoogleSheetsIntegrationCreated.php
similarity index 100%
rename from app/Integrations/Handlers/Events/GoogleSheetsIntegrationCreated.php
rename to api/app/Integrations/Handlers/Events/GoogleSheetsIntegrationCreated.php
diff --git a/app/Integrations/Handlers/GoogleSheetsIntegration.php b/api/app/Integrations/Handlers/GoogleSheetsIntegration.php
similarity index 100%
rename from app/Integrations/Handlers/GoogleSheetsIntegration.php
rename to api/app/Integrations/Handlers/GoogleSheetsIntegration.php
diff --git a/app/Integrations/Handlers/SlackIntegration.php b/api/app/Integrations/Handlers/SlackIntegration.php
similarity index 100%
rename from app/Integrations/Handlers/SlackIntegration.php
rename to api/app/Integrations/Handlers/SlackIntegration.php
diff --git a/app/Integrations/Handlers/SubmissionConfirmationIntegration.php b/api/app/Integrations/Handlers/SubmissionConfirmationIntegration.php
similarity index 100%
rename from app/Integrations/Handlers/SubmissionConfirmationIntegration.php
rename to api/app/Integrations/Handlers/SubmissionConfirmationIntegration.php
diff --git a/app/Integrations/Handlers/WebhookIntegration.php b/api/app/Integrations/Handlers/WebhookIntegration.php
similarity index 100%
rename from app/Integrations/Handlers/WebhookIntegration.php
rename to api/app/Integrations/Handlers/WebhookIntegration.php
diff --git a/app/Integrations/Handlers/ZapierIntegration.php b/api/app/Integrations/Handlers/ZapierIntegration.php
similarity index 100%
rename from app/Integrations/Handlers/ZapierIntegration.php
rename to api/app/Integrations/Handlers/ZapierIntegration.php
diff --git a/app/Integrations/OAuth/Drivers/Contracts/OAuthDriver.php b/api/app/Integrations/OAuth/Drivers/Contracts/OAuthDriver.php
similarity index 100%
rename from app/Integrations/OAuth/Drivers/Contracts/OAuthDriver.php
rename to api/app/Integrations/OAuth/Drivers/Contracts/OAuthDriver.php
diff --git a/app/Integrations/OAuth/Drivers/OAuthGoogleDriver.php b/api/app/Integrations/OAuth/Drivers/OAuthGoogleDriver.php
similarity index 100%
rename from app/Integrations/OAuth/Drivers/OAuthGoogleDriver.php
rename to api/app/Integrations/OAuth/Drivers/OAuthGoogleDriver.php
diff --git a/app/Integrations/OAuth/OAuthProviderService.php b/api/app/Integrations/OAuth/OAuthProviderService.php
similarity index 100%
rename from app/Integrations/OAuth/OAuthProviderService.php
rename to api/app/Integrations/OAuth/OAuthProviderService.php
diff --git a/app/Jobs/Billing/RemoveWorkspaceGuests.php b/api/app/Jobs/Billing/RemoveWorkspaceGuests.php
similarity index 100%
rename from app/Jobs/Billing/RemoveWorkspaceGuests.php
rename to api/app/Jobs/Billing/RemoveWorkspaceGuests.php
diff --git a/app/Jobs/Billing/WorkspaceUsersUpdated.php b/api/app/Jobs/Billing/WorkspaceUsersUpdated.php
similarity index 100%
rename from app/Jobs/Billing/WorkspaceUsersUpdated.php
rename to api/app/Jobs/Billing/WorkspaceUsersUpdated.php
diff --git a/app/Jobs/Form/GenerateAiForm.php b/api/app/Jobs/Form/GenerateAiForm.php
similarity index 100%
rename from app/Jobs/Form/GenerateAiForm.php
rename to api/app/Jobs/Form/GenerateAiForm.php
diff --git a/app/Jobs/Form/StoreFormSubmissionJob.php b/api/app/Jobs/Form/StoreFormSubmissionJob.php
similarity index 100%
rename from app/Jobs/Form/StoreFormSubmissionJob.php
rename to api/app/Jobs/Form/StoreFormSubmissionJob.php
diff --git a/app/Listeners/Billing/HandleSubscriptionCreated.php b/api/app/Listeners/Billing/HandleSubscriptionCreated.php
similarity index 100%
rename from app/Listeners/Billing/HandleSubscriptionCreated.php
rename to api/app/Listeners/Billing/HandleSubscriptionCreated.php
diff --git a/app/Listeners/Billing/RemoveWorkspaceGuestsIfNeeded.php b/api/app/Listeners/Billing/RemoveWorkspaceGuestsIfNeeded.php
similarity index 100%
rename from app/Listeners/Billing/RemoveWorkspaceGuestsIfNeeded.php
rename to api/app/Listeners/Billing/RemoveWorkspaceGuestsIfNeeded.php
diff --git a/app/Listeners/Forms/FormCreationConfirmation.php b/api/app/Listeners/Forms/FormCreationConfirmation.php
similarity index 100%
rename from app/Listeners/Forms/FormCreationConfirmation.php
rename to api/app/Listeners/Forms/FormCreationConfirmation.php
diff --git a/app/Listeners/Forms/FormIntegrationCreatedHandler.php b/api/app/Listeners/Forms/FormIntegrationCreatedHandler.php
similarity index 100%
rename from app/Listeners/Forms/FormIntegrationCreatedHandler.php
rename to api/app/Listeners/Forms/FormIntegrationCreatedHandler.php
diff --git a/app/Listeners/Forms/FormIntegrationsEventListener.php b/api/app/Listeners/Forms/FormIntegrationsEventListener.php
similarity index 100%
rename from app/Listeners/Forms/FormIntegrationsEventListener.php
rename to api/app/Listeners/Forms/FormIntegrationsEventListener.php
diff --git a/app/Listeners/Forms/NotifyFormSubmission.php b/api/app/Listeners/Forms/NotifyFormSubmission.php
similarity index 100%
rename from app/Listeners/Forms/NotifyFormSubmission.php
rename to api/app/Listeners/Forms/NotifyFormSubmission.php
diff --git a/app/Mail/Forms/FormCreationConfirmationMail.php b/api/app/Mail/Forms/FormCreationConfirmationMail.php
similarity index 100%
rename from app/Mail/Forms/FormCreationConfirmationMail.php
rename to api/app/Mail/Forms/FormCreationConfirmationMail.php
diff --git a/app/Mail/Forms/FormIntegrationsEventCreationConfirmationMail.php b/api/app/Mail/Forms/FormIntegrationsEventCreationConfirmationMail.php
similarity index 100%
rename from app/Mail/Forms/FormIntegrationsEventCreationConfirmationMail.php
rename to api/app/Mail/Forms/FormIntegrationsEventCreationConfirmationMail.php
diff --git a/app/Mail/Forms/SubmissionConfirmationMail.php b/api/app/Mail/Forms/SubmissionConfirmationMail.php
similarity index 100%
rename from app/Mail/Forms/SubmissionConfirmationMail.php
rename to api/app/Mail/Forms/SubmissionConfirmationMail.php
diff --git a/app/Mail/OpenFormMail.php b/api/app/Mail/OpenFormMail.php
similarity index 100%
rename from app/Mail/OpenFormMail.php
rename to api/app/Mail/OpenFormMail.php
diff --git a/app/Mail/UserInvitationEmail.php b/api/app/Mail/UserInvitationEmail.php
similarity index 100%
rename from app/Mail/UserInvitationEmail.php
rename to api/app/Mail/UserInvitationEmail.php
diff --git a/app/Models/Billing/Subscription.php b/api/app/Models/Billing/Subscription.php
similarity index 100%
rename from app/Models/Billing/Subscription.php
rename to api/app/Models/Billing/Subscription.php
diff --git a/app/Models/Forms/AI/AiFormCompletion.php b/api/app/Models/Forms/AI/AiFormCompletion.php
similarity index 100%
rename from app/Models/Forms/AI/AiFormCompletion.php
rename to api/app/Models/Forms/AI/AiFormCompletion.php
diff --git a/app/Models/Forms/Form.php b/api/app/Models/Forms/Form.php
similarity index 100%
rename from app/Models/Forms/Form.php
rename to api/app/Models/Forms/Form.php
diff --git a/app/Models/Forms/FormStatistic.php b/api/app/Models/Forms/FormStatistic.php
similarity index 100%
rename from app/Models/Forms/FormStatistic.php
rename to api/app/Models/Forms/FormStatistic.php
diff --git a/app/Models/Forms/FormSubmission.php b/api/app/Models/Forms/FormSubmission.php
similarity index 100%
rename from app/Models/Forms/FormSubmission.php
rename to api/app/Models/Forms/FormSubmission.php
diff --git a/app/Models/Forms/FormView.php b/api/app/Models/Forms/FormView.php
similarity index 100%
rename from app/Models/Forms/FormView.php
rename to api/app/Models/Forms/FormView.php
diff --git a/app/Models/Integration/FormIntegration.php b/api/app/Models/Integration/FormIntegration.php
similarity index 100%
rename from app/Models/Integration/FormIntegration.php
rename to api/app/Models/Integration/FormIntegration.php
diff --git a/app/Models/Integration/FormIntegrationsEvent.php b/api/app/Models/Integration/FormIntegrationsEvent.php
similarity index 100%
rename from app/Models/Integration/FormIntegrationsEvent.php
rename to api/app/Models/Integration/FormIntegrationsEvent.php
diff --git a/app/Models/Integration/FormZapierWebhook.php b/api/app/Models/Integration/FormZapierWebhook.php
similarity index 100%
rename from app/Models/Integration/FormZapierWebhook.php
rename to api/app/Models/Integration/FormZapierWebhook.php
diff --git a/app/Models/License.php b/api/app/Models/License.php
similarity index 100%
rename from app/Models/License.php
rename to api/app/Models/License.php
diff --git a/app/Models/OAuthProvider.php b/api/app/Models/OAuthProvider.php
similarity index 100%
rename from app/Models/OAuthProvider.php
rename to api/app/Models/OAuthProvider.php
diff --git a/app/Models/Template.php b/api/app/Models/Template.php
similarity index 100%
rename from app/Models/Template.php
rename to api/app/Models/Template.php
diff --git a/app/Models/Traits/CachableAttributes.php b/api/app/Models/Traits/CachableAttributes.php
similarity index 100%
rename from app/Models/Traits/CachableAttributes.php
rename to api/app/Models/Traits/CachableAttributes.php
diff --git a/app/Models/Traits/CachesAttributes.php b/api/app/Models/Traits/CachesAttributes.php
similarity index 100%
rename from app/Models/Traits/CachesAttributes.php
rename to api/app/Models/Traits/CachesAttributes.php
diff --git a/app/Models/User.php b/api/app/Models/User.php
similarity index 100%
rename from app/Models/User.php
rename to api/app/Models/User.php
diff --git a/app/Models/UserInvite.php b/api/app/Models/UserInvite.php
similarity index 100%
rename from app/Models/UserInvite.php
rename to api/app/Models/UserInvite.php
diff --git a/app/Models/UserWorkspace.php b/api/app/Models/UserWorkspace.php
similarity index 100%
rename from app/Models/UserWorkspace.php
rename to api/app/Models/UserWorkspace.php
diff --git a/app/Models/Workspace.php b/api/app/Models/Workspace.php
similarity index 100%
rename from app/Models/Workspace.php
rename to api/app/Models/Workspace.php
diff --git a/app/Notifications/Forms/FormSubmissionNotification.php b/api/app/Notifications/Forms/FormSubmissionNotification.php
similarity index 100%
rename from app/Notifications/Forms/FormSubmissionNotification.php
rename to api/app/Notifications/Forms/FormSubmissionNotification.php
diff --git a/app/Notifications/ResetPassword.php b/api/app/Notifications/ResetPassword.php
similarity index 100%
rename from app/Notifications/ResetPassword.php
rename to api/app/Notifications/ResetPassword.php
diff --git a/app/Notifications/Subscription/FailedPaymentNotification.php b/api/app/Notifications/Subscription/FailedPaymentNotification.php
similarity index 100%
rename from app/Notifications/Subscription/FailedPaymentNotification.php
rename to api/app/Notifications/Subscription/FailedPaymentNotification.php
diff --git a/app/Notifications/VerifyEmail.php b/api/app/Notifications/VerifyEmail.php
similarity index 100%
rename from app/Notifications/VerifyEmail.php
rename to api/app/Notifications/VerifyEmail.php
diff --git a/app/Policies/FormPolicy.php b/api/app/Policies/FormPolicy.php
similarity index 100%
rename from app/Policies/FormPolicy.php
rename to api/app/Policies/FormPolicy.php
diff --git a/app/Policies/Integration/FormZapierWebhookPolicy.php b/api/app/Policies/Integration/FormZapierWebhookPolicy.php
similarity index 100%
rename from app/Policies/Integration/FormZapierWebhookPolicy.php
rename to api/app/Policies/Integration/FormZapierWebhookPolicy.php
diff --git a/app/Policies/OAuthProviderPolicy.php b/api/app/Policies/OAuthProviderPolicy.php
similarity index 100%
rename from app/Policies/OAuthProviderPolicy.php
rename to api/app/Policies/OAuthProviderPolicy.php
diff --git a/app/Policies/PersonalAccessTokenPolicy.php b/api/app/Policies/PersonalAccessTokenPolicy.php
similarity index 100%
rename from app/Policies/PersonalAccessTokenPolicy.php
rename to api/app/Policies/PersonalAccessTokenPolicy.php
diff --git a/app/Policies/TemplatePolicy.php b/api/app/Policies/TemplatePolicy.php
similarity index 100%
rename from app/Policies/TemplatePolicy.php
rename to api/app/Policies/TemplatePolicy.php
diff --git a/app/Policies/WorkspacePolicy.php b/api/app/Policies/WorkspacePolicy.php
similarity index 100%
rename from app/Policies/WorkspacePolicy.php
rename to api/app/Policies/WorkspacePolicy.php
diff --git a/app/Providers/AppServiceProvider.php b/api/app/Providers/AppServiceProvider.php
similarity index 100%
rename from app/Providers/AppServiceProvider.php
rename to api/app/Providers/AppServiceProvider.php
diff --git a/app/Providers/AuthServiceProvider.php b/api/app/Providers/AuthServiceProvider.php
similarity index 100%
rename from app/Providers/AuthServiceProvider.php
rename to api/app/Providers/AuthServiceProvider.php
diff --git a/app/Providers/BroadcastServiceProvider.php b/api/app/Providers/BroadcastServiceProvider.php
similarity index 100%
rename from app/Providers/BroadcastServiceProvider.php
rename to api/app/Providers/BroadcastServiceProvider.php
diff --git a/app/Providers/EventServiceProvider.php b/api/app/Providers/EventServiceProvider.php
similarity index 100%
rename from app/Providers/EventServiceProvider.php
rename to api/app/Providers/EventServiceProvider.php
diff --git a/app/Providers/HorizonServiceProvider.php b/api/app/Providers/HorizonServiceProvider.php
similarity index 100%
rename from app/Providers/HorizonServiceProvider.php
rename to api/app/Providers/HorizonServiceProvider.php
diff --git a/app/Providers/PurifySetupProvider.php b/api/app/Providers/PurifySetupProvider.php
similarity index 100%
rename from app/Providers/PurifySetupProvider.php
rename to api/app/Providers/PurifySetupProvider.php
diff --git a/app/Providers/RouteServiceProvider.php b/api/app/Providers/RouteServiceProvider.php
similarity index 100%
rename from app/Providers/RouteServiceProvider.php
rename to api/app/Providers/RouteServiceProvider.php
diff --git a/app/Providers/VaporUiServiceProvider.php b/api/app/Providers/VaporUiServiceProvider.php
similarity index 100%
rename from app/Providers/VaporUiServiceProvider.php
rename to api/app/Providers/VaporUiServiceProvider.php
diff --git a/app/Rules/CustomFieldValidationRule.php b/api/app/Rules/CustomFieldValidationRule.php
similarity index 100%
rename from app/Rules/CustomFieldValidationRule.php
rename to api/app/Rules/CustomFieldValidationRule.php
diff --git a/app/Rules/FormPropertyLogicRule.php b/api/app/Rules/FormPropertyLogicRule.php
similarity index 100%
rename from app/Rules/FormPropertyLogicRule.php
rename to api/app/Rules/FormPropertyLogicRule.php
diff --git a/app/Rules/IntegrationLogicRule.php b/api/app/Rules/IntegrationLogicRule.php
similarity index 100%
rename from app/Rules/IntegrationLogicRule.php
rename to api/app/Rules/IntegrationLogicRule.php
diff --git a/app/Rules/MatrixValidationRule.php b/api/app/Rules/MatrixValidationRule.php
similarity index 100%
rename from app/Rules/MatrixValidationRule.php
rename to api/app/Rules/MatrixValidationRule.php
diff --git a/app/Rules/OneEmailPerLine.php b/api/app/Rules/OneEmailPerLine.php
similarity index 100%
rename from app/Rules/OneEmailPerLine.php
rename to api/app/Rules/OneEmailPerLine.php
diff --git a/app/Rules/StorageFile.php b/api/app/Rules/StorageFile.php
similarity index 100%
rename from app/Rules/StorageFile.php
rename to api/app/Rules/StorageFile.php
diff --git a/app/Rules/ValidHCaptcha.php b/api/app/Rules/ValidHCaptcha.php
similarity index 100%
rename from app/Rules/ValidHCaptcha.php
rename to api/app/Rules/ValidHCaptcha.php
diff --git a/app/Rules/ValidPhoneInputRule.php b/api/app/Rules/ValidPhoneInputRule.php
similarity index 100%
rename from app/Rules/ValidPhoneInputRule.php
rename to api/app/Rules/ValidPhoneInputRule.php
diff --git a/app/Rules/ValidUrl.php b/api/app/Rules/ValidUrl.php
similarity index 100%
rename from app/Rules/ValidUrl.php
rename to api/app/Rules/ValidUrl.php
diff --git a/app/Service/BillingHelper.php b/api/app/Service/BillingHelper.php
similarity index 100%
rename from app/Service/BillingHelper.php
rename to api/app/Service/BillingHelper.php
diff --git a/app/Service/Forms/FormCleaner.php b/api/app/Service/Forms/FormCleaner.php
similarity index 100%
rename from app/Service/Forms/FormCleaner.php
rename to api/app/Service/Forms/FormCleaner.php
diff --git a/app/Service/Forms/FormLogicConditionChecker.php b/api/app/Service/Forms/FormLogicConditionChecker.php
similarity index 100%
rename from app/Service/Forms/FormLogicConditionChecker.php
rename to api/app/Service/Forms/FormLogicConditionChecker.php
diff --git a/app/Service/Forms/FormLogicPropertyResolver.php b/api/app/Service/Forms/FormLogicPropertyResolver.php
similarity index 100%
rename from app/Service/Forms/FormLogicPropertyResolver.php
rename to api/app/Service/Forms/FormLogicPropertyResolver.php
diff --git a/app/Service/Forms/FormSubmissionFormatter.php b/api/app/Service/Forms/FormSubmissionFormatter.php
similarity index 100%
rename from app/Service/Forms/FormSubmissionFormatter.php
rename to api/app/Service/Forms/FormSubmissionFormatter.php
diff --git a/app/Service/HtmlPurifier/HTMLPurifier_URIScheme_notion.php b/api/app/Service/HtmlPurifier/HTMLPurifier_URIScheme_notion.php
similarity index 100%
rename from app/Service/HtmlPurifier/HTMLPurifier_URIScheme_notion.php
rename to api/app/Service/HtmlPurifier/HTMLPurifier_URIScheme_notion.php
diff --git a/app/Service/OpenAi/GptCompleter.php b/api/app/Service/OpenAi/GptCompleter.php
similarity index 100%
rename from app/Service/OpenAi/GptCompleter.php
rename to api/app/Service/OpenAi/GptCompleter.php
diff --git a/app/Service/OpenAi/Utils/JsonFixer.php b/api/app/Service/OpenAi/Utils/JsonFixer.php
similarity index 100%
rename from app/Service/OpenAi/Utils/JsonFixer.php
rename to api/app/Service/OpenAi/Utils/JsonFixer.php
diff --git a/app/Service/OpenAi/Utils/PadsJson.php b/api/app/Service/OpenAi/Utils/PadsJson.php
similarity index 100%
rename from app/Service/OpenAi/Utils/PadsJson.php
rename to api/app/Service/OpenAi/Utils/PadsJson.php
diff --git a/app/Service/SeoMetaResolver.php b/api/app/Service/SeoMetaResolver.php
similarity index 100%
rename from app/Service/SeoMetaResolver.php
rename to api/app/Service/SeoMetaResolver.php
diff --git a/app/Service/Storage/S3KeyCleaner.php b/api/app/Service/Storage/S3KeyCleaner.php
similarity index 100%
rename from app/Service/Storage/S3KeyCleaner.php
rename to api/app/Service/Storage/S3KeyCleaner.php
diff --git a/app/Service/Storage/StorageFileNameParser.php b/api/app/Service/Storage/StorageFileNameParser.php
similarity index 100%
rename from app/Service/Storage/StorageFileNameParser.php
rename to api/app/Service/Storage/StorageFileNameParser.php
diff --git a/app/Service/UserHelper.php b/api/app/Service/UserHelper.php
similarity index 100%
rename from app/Service/UserHelper.php
rename to api/app/Service/UserHelper.php
diff --git a/app/Service/WorkspaceHelper.php b/api/app/Service/WorkspaceHelper.php
similarity index 100%
rename from app/Service/WorkspaceHelper.php
rename to api/app/Service/WorkspaceHelper.php
diff --git a/api/app/helpers.php b/api/app/helpers.php
new file mode 100644
index 000000000..f25c70556
--- /dev/null
+++ b/api/app/helpers.php
@@ -0,0 +1,21 @@
+<?php
+
+if (!function_exists('front_url')) {
+ function front_url($path = '')
+ {
+ $baseUrl = config('app.front_url') ?? config('app.url');
+ \Log::info('Base URL for front-end: ' . $baseUrl);
+ if (! $baseUrl) {
+ return $path;
+ }
+
+ return rtrim($baseUrl, '/') . '/' . ltrim($path, '/');
+ }
+}
+
+if (!function_exists('pricing_enabled')) {
+ function pricing_enabled(): bool
+ {
+ return App::environment() !== 'testing' && !is_null(config('cashier.key'));
+ }
+}
diff --git a/artisan b/api/artisan
similarity index 100%
rename from artisan
rename to api/artisan
diff --git a/bootstrap/app.php b/api/bootstrap/app.php
similarity index 100%
rename from bootstrap/app.php
rename to api/bootstrap/app.php
diff --git a/bootstrap/cache/.gitignore b/api/bootstrap/cache/.gitignore
similarity index 100%
rename from bootstrap/cache/.gitignore
rename to api/bootstrap/cache/.gitignore
diff --git a/composer.json b/api/composer.json
similarity index 100%
rename from composer.json
rename to api/composer.json
diff --git a/composer.lock b/api/composer.lock
similarity index 100%
rename from composer.lock
rename to api/composer.lock
diff --git a/config/app.php b/api/config/app.php
similarity index 100%
rename from config/app.php
rename to api/config/app.php
diff --git a/config/auth.php b/api/config/auth.php
similarity index 100%
rename from config/auth.php
rename to api/config/auth.php
diff --git a/config/broadcasting.php b/api/config/broadcasting.php
similarity index 100%
rename from config/broadcasting.php
rename to api/config/broadcasting.php
diff --git a/config/cache.php b/api/config/cache.php
similarity index 100%
rename from config/cache.php
rename to api/config/cache.php
diff --git a/config/cashier.php b/api/config/cashier.php
similarity index 100%
rename from config/cashier.php
rename to api/config/cashier.php
diff --git a/config/cors.php b/api/config/cors.php
similarity index 100%
rename from config/cors.php
rename to api/config/cors.php
diff --git a/config/custom-domains.php b/api/config/custom-domains.php
similarity index 100%
rename from config/custom-domains.php
rename to api/config/custom-domains.php
diff --git a/config/database.php b/api/config/database.php
similarity index 100%
rename from config/database.php
rename to api/config/database.php
diff --git a/config/disposable-email.php b/api/config/disposable-email.php
similarity index 100%
rename from config/disposable-email.php
rename to api/config/disposable-email.php
diff --git a/config/excel.php b/api/config/excel.php
similarity index 100%
rename from config/excel.php
rename to api/config/excel.php
diff --git a/config/filesystems.php b/api/config/filesystems.php
similarity index 98%
rename from config/filesystems.php
rename to api/config/filesystems.php
index 384e88a90..0eb67df7b 100644
--- a/config/filesystems.php
+++ b/api/config/filesystems.php
@@ -53,7 +53,7 @@ return [
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
- 'url' => env('APP_URL').'/storage',
+ 'url' => env('APP_URL') . '/storage',
'visibility' => 'public',
],
diff --git a/config/hashing.php b/api/config/hashing.php
similarity index 100%
rename from config/hashing.php
rename to api/config/hashing.php
diff --git a/config/horizon.php b/api/config/horizon.php
similarity index 100%
rename from config/horizon.php
rename to api/config/horizon.php
diff --git a/config/jwt.php b/api/config/jwt.php
similarity index 100%
rename from config/jwt.php
rename to api/config/jwt.php
diff --git a/config/links.php b/api/config/links.php
similarity index 100%
rename from config/links.php
rename to api/config/links.php
diff --git a/config/logging.php b/api/config/logging.php
similarity index 100%
rename from config/logging.php
rename to api/config/logging.php
diff --git a/config/mail.php b/api/config/mail.php
similarity index 100%
rename from config/mail.php
rename to api/config/mail.php
diff --git a/config/model-stats.php b/api/config/model-stats.php
similarity index 100%
rename from config/model-stats.php
rename to api/config/model-stats.php
diff --git a/config/opnform.php b/api/config/opnform.php
similarity index 100%
rename from config/opnform.php
rename to api/config/opnform.php
diff --git a/config/pricing.php b/api/config/pricing.php
similarity index 100%
rename from config/pricing.php
rename to api/config/pricing.php
diff --git a/config/purify.php b/api/config/purify.php
similarity index 100%
rename from config/purify.php
rename to api/config/purify.php
diff --git a/config/queue.php b/api/config/queue.php
similarity index 100%
rename from config/queue.php
rename to api/config/queue.php
diff --git a/config/sanctum.php b/api/config/sanctum.php
similarity index 100%
rename from config/sanctum.php
rename to api/config/sanctum.php
diff --git a/config/sentry.php b/api/config/sentry.php
similarity index 100%
rename from config/sentry.php
rename to api/config/sentry.php
diff --git a/config/services.php b/api/config/services.php
similarity index 100%
rename from config/services.php
rename to api/config/services.php
diff --git a/config/session.php b/api/config/session.php
similarity index 100%
rename from config/session.php
rename to api/config/session.php
diff --git a/config/vapor-ui.php b/api/config/vapor-ui.php
similarity index 100%
rename from config/vapor-ui.php
rename to api/config/vapor-ui.php
diff --git a/config/view.php b/api/config/view.php
similarity index 100%
rename from config/view.php
rename to api/config/view.php
diff --git a/database/.gitignore b/api/database/.gitignore
similarity index 100%
rename from database/.gitignore
rename to api/database/.gitignore
diff --git a/database/factories/FormFactory.php b/api/database/factories/FormFactory.php
similarity index 100%
rename from database/factories/FormFactory.php
rename to api/database/factories/FormFactory.php
diff --git a/database/factories/Integration/FormIntegrationFactory.php b/api/database/factories/Integration/FormIntegrationFactory.php
similarity index 100%
rename from database/factories/Integration/FormIntegrationFactory.php
rename to api/database/factories/Integration/FormIntegrationFactory.php
diff --git a/database/factories/OAuthProviderFactory.php b/api/database/factories/OAuthProviderFactory.php
similarity index 100%
rename from database/factories/OAuthProviderFactory.php
rename to api/database/factories/OAuthProviderFactory.php
diff --git a/database/factories/UserFactory.php b/api/database/factories/UserFactory.php
similarity index 100%
rename from database/factories/UserFactory.php
rename to api/database/factories/UserFactory.php
diff --git a/database/factories/WorkspaceFactory.php b/api/database/factories/WorkspaceFactory.php
similarity index 100%
rename from database/factories/WorkspaceFactory.php
rename to api/database/factories/WorkspaceFactory.php
diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/api/database/migrations/2014_10_12_000000_create_users_table.php
similarity index 100%
rename from database/migrations/2014_10_12_000000_create_users_table.php
rename to api/database/migrations/2014_10_12_000000_create_users_table.php
diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/api/database/migrations/2014_10_12_100000_create_password_resets_table.php
similarity index 100%
rename from database/migrations/2014_10_12_100000_create_password_resets_table.php
rename to api/database/migrations/2014_10_12_100000_create_password_resets_table.php
diff --git a/database/migrations/2017_12_07_122845_create_oauth_providers_table.php b/api/database/migrations/2017_12_07_122845_create_oauth_providers_table.php
similarity index 100%
rename from database/migrations/2017_12_07_122845_create_oauth_providers_table.php
rename to api/database/migrations/2017_12_07_122845_create_oauth_providers_table.php
diff --git a/database/migrations/2019_05_03_000001_create_customer_columns.php b/api/database/migrations/2019_05_03_000001_create_customer_columns.php
similarity index 100%
rename from database/migrations/2019_05_03_000001_create_customer_columns.php
rename to api/database/migrations/2019_05_03_000001_create_customer_columns.php
diff --git a/database/migrations/2019_05_03_000002_create_subscriptions_table.php b/api/database/migrations/2019_05_03_000002_create_subscriptions_table.php
similarity index 100%
rename from database/migrations/2019_05_03_000002_create_subscriptions_table.php
rename to api/database/migrations/2019_05_03_000002_create_subscriptions_table.php
diff --git a/database/migrations/2019_05_03_000003_create_subscription_items_table.php b/api/database/migrations/2019_05_03_000003_create_subscription_items_table.php
similarity index 100%
rename from database/migrations/2019_05_03_000003_create_subscription_items_table.php
rename to api/database/migrations/2019_05_03_000003_create_subscription_items_table.php
diff --git a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/api/database/migrations/2019_08_19_000000_create_failed_jobs_table.php
similarity index 100%
rename from database/migrations/2019_08_19_000000_create_failed_jobs_table.php
rename to api/database/migrations/2019_08_19_000000_create_failed_jobs_table.php
diff --git a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/api/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php
similarity index 100%
rename from database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php
rename to api/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php
diff --git a/database/migrations/2021_05_17_142505_create_workspaces_table.php b/api/database/migrations/2021_05_17_142505_create_workspaces_table.php
similarity index 100%
rename from database/migrations/2021_05_17_142505_create_workspaces_table.php
rename to api/database/migrations/2021_05_17_142505_create_workspaces_table.php
diff --git a/database/migrations/2021_05_19_140326_create_forms_table.php b/api/database/migrations/2021_05_19_140326_create_forms_table.php
similarity index 100%
rename from database/migrations/2021_05_19_140326_create_forms_table.php
rename to api/database/migrations/2021_05_19_140326_create_forms_table.php
diff --git a/database/migrations/2021_05_24_233839_make_forms_soft_deletable.php b/api/database/migrations/2021_05_24_233839_make_forms_soft_deletable.php
similarity index 100%
rename from database/migrations/2021_05_24_233839_make_forms_soft_deletable.php
rename to api/database/migrations/2021_05_24_233839_make_forms_soft_deletable.php
diff --git a/database/migrations/2021_05_24_234028_create_form_submissions_table.php b/api/database/migrations/2021_05_24_234028_create_form_submissions_table.php
similarity index 100%
rename from database/migrations/2021_05_24_234028_create_form_submissions_table.php
rename to api/database/migrations/2021_05_24_234028_create_form_submissions_table.php
diff --git a/database/migrations/2021_07_21_072850_add_hear_about_us_to_users_table.php b/api/database/migrations/2021_07_21_072850_add_hear_about_us_to_users_table.php
similarity index 100%
rename from database/migrations/2021_07_21_072850_add_hear_about_us_to_users_table.php
rename to api/database/migrations/2021_07_21_072850_add_hear_about_us_to_users_table.php
diff --git a/database/migrations/2021_09_29_192133_create_form_zapier_webhooks_table.php b/api/database/migrations/2021_09_29_192133_create_form_zapier_webhooks_table.php
similarity index 100%
rename from database/migrations/2021_09_29_192133_create_form_zapier_webhooks_table.php
rename to api/database/migrations/2021_09_29_192133_create_form_zapier_webhooks_table.php
diff --git a/database/migrations/2021_10_13_142022_create_users_workspaces_table.php b/api/database/migrations/2021_10_13_142022_create_users_workspaces_table.php
similarity index 100%
rename from database/migrations/2021_10_13_142022_create_users_workspaces_table.php
rename to api/database/migrations/2021_10_13_142022_create_users_workspaces_table.php
diff --git a/database/migrations/2021_11_04_171750_create_job_batches_table.php b/api/database/migrations/2021_11_04_171750_create_job_batches_table.php
similarity index 100%
rename from database/migrations/2021_11_04_171750_create_job_batches_table.php
rename to api/database/migrations/2021_11_04_171750_create_job_batches_table.php
diff --git a/database/migrations/2021_11_04_171753_create_webhook_calls_table.php b/api/database/migrations/2021_11_04_171753_create_webhook_calls_table.php
similarity index 100%
rename from database/migrations/2021_11_04_171753_create_webhook_calls_table.php
rename to api/database/migrations/2021_11_04_171753_create_webhook_calls_table.php
diff --git a/database/migrations/2022_03_12_105502_add_indexes_to_important_tables.php b/api/database/migrations/2022_03_12_105502_add_indexes_to_important_tables.php
similarity index 100%
rename from database/migrations/2022_03_12_105502_add_indexes_to_important_tables.php
rename to api/database/migrations/2022_03_12_105502_add_indexes_to_important_tables.php
diff --git a/database/migrations/2022_05_02_092915_form_views.php b/api/database/migrations/2022_05_02_092915_form_views.php
similarity index 100%
rename from database/migrations/2022_05_02_092915_form_views.php
rename to api/database/migrations/2022_05_02_092915_form_views.php
diff --git a/database/migrations/2022_05_10_144947_form_statistic.php b/api/database/migrations/2022_05_10_144947_form_statistic.php
similarity index 100%
rename from database/migrations/2022_05_10_144947_form_statistic.php
rename to api/database/migrations/2022_05_10_144947_form_statistic.php
diff --git a/database/migrations/2022_08_18_133641_add_removed_properties_to_forms.php b/api/database/migrations/2022_08_18_133641_add_removed_properties_to_forms.php
similarity index 100%
rename from database/migrations/2022_08_18_133641_add_removed_properties_to_forms.php
rename to api/database/migrations/2022_08_18_133641_add_removed_properties_to_forms.php
diff --git a/database/migrations/2022_09_06_044038_add_max_submissions_to_forms.php b/api/database/migrations/2022_09_06_044038_add_max_submissions_to_forms.php
similarity index 100%
rename from database/migrations/2022_09_06_044038_add_max_submissions_to_forms.php
rename to api/database/migrations/2022_09_06_044038_add_max_submissions_to_forms.php
diff --git a/database/migrations/2022_09_12_074636_remove_access_token_from_workspaces.php b/api/database/migrations/2022_09_12_074636_remove_access_token_from_workspaces.php
similarity index 100%
rename from database/migrations/2022_09_12_074636_remove_access_token_from_workspaces.php
rename to api/database/migrations/2022_09_12_074636_remove_access_token_from_workspaces.php
diff --git a/database/migrations/2022_09_16_110344_add_slack_webhook_url_to_forms.php b/api/database/migrations/2022_09_16_110344_add_slack_webhook_url_to_forms.php
similarity index 100%
rename from database/migrations/2022_09_16_110344_add_slack_webhook_url_to_forms.php
rename to api/database/migrations/2022_09_16_110344_add_slack_webhook_url_to_forms.php
diff --git a/database/migrations/2022_09_22_092205_create_templates_table.php b/api/database/migrations/2022_09_22_092205_create_templates_table.php
similarity index 100%
rename from database/migrations/2022_09_22_092205_create_templates_table.php
rename to api/database/migrations/2022_09_22_092205_create_templates_table.php
diff --git a/database/migrations/2022_09_26_084721_add_questions_to_templates.php b/api/database/migrations/2022_09_26_084721_add_questions_to_templates.php
similarity index 100%
rename from database/migrations/2022_09_26_084721_add_questions_to_templates.php
rename to api/database/migrations/2022_09_26_084721_add_questions_to_templates.php
diff --git a/database/migrations/2022_10_07_122038_add_visibility_to_forms.php b/api/database/migrations/2022_10_07_122038_add_visibility_to_forms.php
similarity index 100%
rename from database/migrations/2022_10_07_122038_add_visibility_to_forms.php
rename to api/database/migrations/2022_10_07_122038_add_visibility_to_forms.php
diff --git a/database/migrations/2022_12_27_114803_add_editable_submissions_to_forms.php b/api/database/migrations/2022_12_27_114803_add_editable_submissions_to_forms.php
similarity index 100%
rename from database/migrations/2022_12_27_114803_add_editable_submissions_to_forms.php
rename to api/database/migrations/2022_12_27_114803_add_editable_submissions_to_forms.php
diff --git a/database/migrations/2023_01_28_142618_add_discord_url.php b/api/database/migrations/2023_01_28_142618_add_discord_url.php
similarity index 100%
rename from database/migrations/2023_01_28_142618_add_discord_url.php
rename to api/database/migrations/2023_01_28_142618_add_discord_url.php
diff --git a/database/migrations/2023_03_06_033440_change_max_submissions_reached_text_to_text.php b/api/database/migrations/2023_03_06_033440_change_max_submissions_reached_text_to_text.php
similarity index 100%
rename from database/migrations/2023_03_06_033440_change_max_submissions_reached_text_to_text.php
rename to api/database/migrations/2023_03_06_033440_change_max_submissions_reached_text_to_text.php
diff --git a/database/migrations/2023_03_13_094806_add_editable_submissions_button_text_to_forms.php b/api/database/migrations/2023_03_13_094806_add_editable_submissions_button_text_to_forms.php
similarity index 100%
rename from database/migrations/2023_03_13_094806_add_editable_submissions_button_text_to_forms.php
rename to api/database/migrations/2023_03_13_094806_add_editable_submissions_button_text_to_forms.php
diff --git a/database/migrations/2023_03_14_094623_change_templates_image_url_to_nullable.php b/api/database/migrations/2023_03_14_094623_change_templates_image_url_to_nullable.php
similarity index 100%
rename from database/migrations/2023_03_14_094623_change_templates_image_url_to_nullable.php
rename to api/database/migrations/2023_03_14_094623_change_templates_image_url_to_nullable.php
diff --git a/database/migrations/2023_03_27_153317_create_ai_form_completions_table.php b/api/database/migrations/2023_03_27_153317_create_ai_form_completions_table.php
similarity index 100%
rename from database/migrations/2023_03_27_153317_create_ai_form_completions_table.php
rename to api/database/migrations/2023_03_27_153317_create_ai_form_completions_table.php
diff --git a/database/migrations/2023_03_27_173507_create_jobs_table.php b/api/database/migrations/2023_03_27_173507_create_jobs_table.php
similarity index 100%
rename from database/migrations/2023_03_27_173507_create_jobs_table.php
rename to api/database/migrations/2023_03_27_173507_create_jobs_table.php
diff --git a/database/migrations/2023_04_04_093956_add_confetti_on_submission_to_forms.php b/api/database/migrations/2023_04_04_093956_add_confetti_on_submission_to_forms.php
similarity index 100%
rename from database/migrations/2023_04_04_093956_add_confetti_on_submission_to_forms.php
rename to api/database/migrations/2023_04_04_093956_add_confetti_on_submission_to_forms.php
diff --git a/database/migrations/2023_07_20_073728_add_seo_meta_to_forms.php b/api/database/migrations/2023_07_20_073728_add_seo_meta_to_forms.php
similarity index 100%
rename from database/migrations/2023_07_20_073728_add_seo_meta_to_forms.php
rename to api/database/migrations/2023_07_20_073728_add_seo_meta_to_forms.php
diff --git a/database/migrations/2023_08_23_100710_add_notification_settings_to_forms.php b/api/database/migrations/2023_08_23_100710_add_notification_settings_to_forms.php
similarity index 100%
rename from database/migrations/2023_08_23_100710_add_notification_settings_to_forms.php
rename to api/database/migrations/2023_08_23_100710_add_notification_settings_to_forms.php
diff --git a/database/migrations/2023_09_01_052507_add_fields_to_templates.php b/api/database/migrations/2023_09_01_052507_add_fields_to_templates.php
similarity index 100%
rename from database/migrations/2023_09_01_052507_add_fields_to_templates.php
rename to api/database/migrations/2023_09_01_052507_add_fields_to_templates.php
diff --git a/database/migrations/2023_09_21_092812_add_creator_id_to_templates.php b/api/database/migrations/2023_09_21_092812_add_creator_id_to_templates.php
similarity index 100%
rename from database/migrations/2023_09_21_092812_add_creator_id_to_templates.php
rename to api/database/migrations/2023_09_21_092812_add_creator_id_to_templates.php
diff --git a/database/migrations/2023_10_10_140600_add_auto_save_to_forms.php b/api/database/migrations/2023_10_10_140600_add_auto_save_to_forms.php
similarity index 100%
rename from database/migrations/2023_10_10_140600_add_auto_save_to_forms.php
rename to api/database/migrations/2023_10_10_140600_add_auto_save_to_forms.php
diff --git a/database/migrations/2023_10_13_080104_change_type_of_form_prompt_in_ai_form_completions.php b/api/database/migrations/2023_10_13_080104_change_type_of_form_prompt_in_ai_form_completions.php
similarity index 100%
rename from database/migrations/2023_10_13_080104_change_type_of_form_prompt_in_ai_form_completions.php
rename to api/database/migrations/2023_10_13_080104_change_type_of_form_prompt_in_ai_form_completions.php
diff --git a/database/migrations/2023_10_30_133259_create_licenses_table.php b/api/database/migrations/2023_10_30_133259_create_licenses_table.php
similarity index 100%
rename from database/migrations/2023_10_30_133259_create_licenses_table.php
rename to api/database/migrations/2023_10_30_133259_create_licenses_table.php
diff --git a/database/migrations/2023_11_28_104644_add_custom_domains_to_workspaces_table.php b/api/database/migrations/2023_11_28_104644_add_custom_domains_to_workspaces_table.php
similarity index 100%
rename from database/migrations/2023_11_28_104644_add_custom_domains_to_workspaces_table.php
rename to api/database/migrations/2023_11_28_104644_add_custom_domains_to_workspaces_table.php
diff --git a/database/migrations/2023_11_28_161121_add_custom_domain_to_forms_table.php b/api/database/migrations/2023_11_28_161121_add_custom_domain_to_forms_table.php
similarity index 100%
rename from database/migrations/2023_11_28_161121_add_custom_domain_to_forms_table.php
rename to api/database/migrations/2023_11_28_161121_add_custom_domain_to_forms_table.php
diff --git a/database/migrations/2024_02_21_100134_create_form_integrations_table.php b/api/database/migrations/2024_02_21_100134_create_form_integrations_table.php
similarity index 100%
rename from database/migrations/2024_02_21_100134_create_form_integrations_table.php
rename to api/database/migrations/2024_02_21_100134_create_form_integrations_table.php
diff --git a/database/migrations/2024_02_21_160807_create_form_integrations_events_table.php b/api/database/migrations/2024_02_21_160807_create_form_integrations_events_table.php
similarity index 100%
rename from database/migrations/2024_02_21_160807_create_form_integrations_events_table.php
rename to api/database/migrations/2024_02_21_160807_create_form_integrations_events_table.php
diff --git a/database/migrations/2024_03_12_173732_show_progress_bar.php b/api/database/migrations/2024_03_12_173732_show_progress_bar.php
similarity index 100%
rename from database/migrations/2024_03_12_173732_show_progress_bar.php
rename to api/database/migrations/2024_03_12_173732_show_progress_bar.php
diff --git a/database/migrations/2024_03_26_170934_remove_notifications_fields_from_forms.php b/api/database/migrations/2024_03_26_170934_remove_notifications_fields_from_forms.php
similarity index 100%
rename from database/migrations/2024_03_26_170934_remove_notifications_fields_from_forms.php
rename to api/database/migrations/2024_03_26_170934_remove_notifications_fields_from_forms.php
diff --git a/database/migrations/2024_05_10_063347_add_user_data_to_oauth_providers_table.php b/api/database/migrations/2024_05_10_063347_add_user_data_to_oauth_providers_table.php
similarity index 100%
rename from database/migrations/2024_05_10_063347_add_user_data_to_oauth_providers_table.php
rename to api/database/migrations/2024_05_10_063347_add_user_data_to_oauth_providers_table.php
diff --git a/database/migrations/2024_05_29_002132_add_expires_at_to_oauth_providers_table.php b/api/database/migrations/2024_05_29_002132_add_expires_at_to_oauth_providers_table.php
similarity index 100%
rename from database/migrations/2024_05_29_002132_add_expires_at_to_oauth_providers_table.php
rename to api/database/migrations/2024_05_29_002132_add_expires_at_to_oauth_providers_table.php
diff --git a/database/migrations/2024_06_04_131157_type_update_to_subscriptions_table.php b/api/database/migrations/2024_06_04_131157_type_update_to_subscriptions_table.php
similarity index 100%
rename from database/migrations/2024_06_04_131157_type_update_to_subscriptions_table.php
rename to api/database/migrations/2024_06_04_131157_type_update_to_subscriptions_table.php
diff --git a/database/migrations/2024_06_05_132837_rename_password_resets_table.php b/api/database/migrations/2024_06_05_132837_rename_password_resets_table.php
similarity index 100%
rename from database/migrations/2024_06_05_132837_rename_password_resets_table.php
rename to api/database/migrations/2024_06_05_132837_rename_password_resets_table.php
diff --git a/database/migrations/2024_06_18_090415_create_user_invites_table.php b/api/database/migrations/2024_06_18_090415_create_user_invites_table.php
similarity index 100%
rename from database/migrations/2024_06_18_090415_create_user_invites_table.php
rename to api/database/migrations/2024_06_18_090415_create_user_invites_table.php
diff --git a/database/migrations/2024_06_26_092038_add_border_radius_and_size_to_forms_table.php b/api/database/migrations/2024_06_26_092038_add_border_radius_and_size_to_forms_table.php
similarity index 100%
rename from database/migrations/2024_06_26_092038_add_border_radius_and_size_to_forms_table.php
rename to api/database/migrations/2024_06_26_092038_add_border_radius_and_size_to_forms_table.php
diff --git a/database/migrations/2024_08_12_091853_add_font_family_to_forms.php b/api/database/migrations/2024_08_12_091853_add_font_family_to_forms.php
similarity index 100%
rename from database/migrations/2024_08_12_091853_add_font_family_to_forms.php
rename to api/database/migrations/2024_08_12_091853_add_font_family_to_forms.php
diff --git a/database/migrations/2024_08_22_141621_add_auto_focus_to_forms.php b/api/database/migrations/2024_08_22_141621_add_auto_focus_to_forms.php
similarity index 100%
rename from database/migrations/2024_08_22_141621_add_auto_focus_to_forms.php
rename to api/database/migrations/2024_08_22_141621_add_auto_focus_to_forms.php
diff --git a/database/seeders/DatabaseSeeder.php b/api/database/seeders/DatabaseSeeder.php
similarity index 100%
rename from database/seeders/DatabaseSeeder.php
rename to api/database/seeders/DatabaseSeeder.php
diff --git a/phpunit.xml b/api/phpunit.xml
similarity index 100%
rename from phpunit.xml
rename to api/phpunit.xml
diff --git a/pint.json b/api/pint.json
similarity index 100%
rename from pint.json
rename to api/pint.json
diff --git a/public/.htaccess b/api/public/.htaccess
similarity index 100%
rename from public/.htaccess
rename to api/public/.htaccess
diff --git a/public/favicon.ico b/api/public/favicon.ico
similarity index 100%
rename from public/favicon.ico
rename to api/public/favicon.ico
diff --git a/public/fonts/general-sans/GeneralSans-Bold.eot b/api/public/fonts/general-sans/GeneralSans-Bold.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Bold.eot
rename to api/public/fonts/general-sans/GeneralSans-Bold.eot
diff --git a/public/fonts/general-sans/GeneralSans-Bold.ttf b/api/public/fonts/general-sans/GeneralSans-Bold.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Bold.ttf
rename to api/public/fonts/general-sans/GeneralSans-Bold.ttf
diff --git a/public/fonts/general-sans/GeneralSans-Bold.woff b/api/public/fonts/general-sans/GeneralSans-Bold.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Bold.woff
rename to api/public/fonts/general-sans/GeneralSans-Bold.woff
diff --git a/public/fonts/general-sans/GeneralSans-Bold.woff2 b/api/public/fonts/general-sans/GeneralSans-Bold.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Bold.woff2
rename to api/public/fonts/general-sans/GeneralSans-Bold.woff2
diff --git a/public/fonts/general-sans/GeneralSans-BoldItalic.eot b/api/public/fonts/general-sans/GeneralSans-BoldItalic.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-BoldItalic.eot
rename to api/public/fonts/general-sans/GeneralSans-BoldItalic.eot
diff --git a/public/fonts/general-sans/GeneralSans-BoldItalic.ttf b/api/public/fonts/general-sans/GeneralSans-BoldItalic.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-BoldItalic.ttf
rename to api/public/fonts/general-sans/GeneralSans-BoldItalic.ttf
diff --git a/public/fonts/general-sans/GeneralSans-BoldItalic.woff b/api/public/fonts/general-sans/GeneralSans-BoldItalic.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-BoldItalic.woff
rename to api/public/fonts/general-sans/GeneralSans-BoldItalic.woff
diff --git a/public/fonts/general-sans/GeneralSans-BoldItalic.woff2 b/api/public/fonts/general-sans/GeneralSans-BoldItalic.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-BoldItalic.woff2
rename to api/public/fonts/general-sans/GeneralSans-BoldItalic.woff2
diff --git a/public/fonts/general-sans/GeneralSans-Extralight.eot b/api/public/fonts/general-sans/GeneralSans-Extralight.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Extralight.eot
rename to api/public/fonts/general-sans/GeneralSans-Extralight.eot
diff --git a/public/fonts/general-sans/GeneralSans-Extralight.ttf b/api/public/fonts/general-sans/GeneralSans-Extralight.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Extralight.ttf
rename to api/public/fonts/general-sans/GeneralSans-Extralight.ttf
diff --git a/public/fonts/general-sans/GeneralSans-Extralight.woff b/api/public/fonts/general-sans/GeneralSans-Extralight.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Extralight.woff
rename to api/public/fonts/general-sans/GeneralSans-Extralight.woff
diff --git a/public/fonts/general-sans/GeneralSans-Extralight.woff2 b/api/public/fonts/general-sans/GeneralSans-Extralight.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Extralight.woff2
rename to api/public/fonts/general-sans/GeneralSans-Extralight.woff2
diff --git a/public/fonts/general-sans/GeneralSans-ExtralightItalic.eot b/api/public/fonts/general-sans/GeneralSans-ExtralightItalic.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-ExtralightItalic.eot
rename to api/public/fonts/general-sans/GeneralSans-ExtralightItalic.eot
diff --git a/public/fonts/general-sans/GeneralSans-ExtralightItalic.ttf b/api/public/fonts/general-sans/GeneralSans-ExtralightItalic.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-ExtralightItalic.ttf
rename to api/public/fonts/general-sans/GeneralSans-ExtralightItalic.ttf
diff --git a/public/fonts/general-sans/GeneralSans-ExtralightItalic.woff b/api/public/fonts/general-sans/GeneralSans-ExtralightItalic.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-ExtralightItalic.woff
rename to api/public/fonts/general-sans/GeneralSans-ExtralightItalic.woff
diff --git a/public/fonts/general-sans/GeneralSans-ExtralightItalic.woff2 b/api/public/fonts/general-sans/GeneralSans-ExtralightItalic.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-ExtralightItalic.woff2
rename to api/public/fonts/general-sans/GeneralSans-ExtralightItalic.woff2
diff --git a/public/fonts/general-sans/GeneralSans-Italic.eot b/api/public/fonts/general-sans/GeneralSans-Italic.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Italic.eot
rename to api/public/fonts/general-sans/GeneralSans-Italic.eot
diff --git a/public/fonts/general-sans/GeneralSans-Italic.ttf b/api/public/fonts/general-sans/GeneralSans-Italic.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Italic.ttf
rename to api/public/fonts/general-sans/GeneralSans-Italic.ttf
diff --git a/public/fonts/general-sans/GeneralSans-Italic.woff b/api/public/fonts/general-sans/GeneralSans-Italic.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Italic.woff
rename to api/public/fonts/general-sans/GeneralSans-Italic.woff
diff --git a/public/fonts/general-sans/GeneralSans-Italic.woff2 b/api/public/fonts/general-sans/GeneralSans-Italic.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Italic.woff2
rename to api/public/fonts/general-sans/GeneralSans-Italic.woff2
diff --git a/public/fonts/general-sans/GeneralSans-Light.eot b/api/public/fonts/general-sans/GeneralSans-Light.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Light.eot
rename to api/public/fonts/general-sans/GeneralSans-Light.eot
diff --git a/public/fonts/general-sans/GeneralSans-Light.ttf b/api/public/fonts/general-sans/GeneralSans-Light.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Light.ttf
rename to api/public/fonts/general-sans/GeneralSans-Light.ttf
diff --git a/public/fonts/general-sans/GeneralSans-Light.woff b/api/public/fonts/general-sans/GeneralSans-Light.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Light.woff
rename to api/public/fonts/general-sans/GeneralSans-Light.woff
diff --git a/public/fonts/general-sans/GeneralSans-Light.woff2 b/api/public/fonts/general-sans/GeneralSans-Light.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Light.woff2
rename to api/public/fonts/general-sans/GeneralSans-Light.woff2
diff --git a/public/fonts/general-sans/GeneralSans-LightItalic.eot b/api/public/fonts/general-sans/GeneralSans-LightItalic.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-LightItalic.eot
rename to api/public/fonts/general-sans/GeneralSans-LightItalic.eot
diff --git a/public/fonts/general-sans/GeneralSans-LightItalic.ttf b/api/public/fonts/general-sans/GeneralSans-LightItalic.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-LightItalic.ttf
rename to api/public/fonts/general-sans/GeneralSans-LightItalic.ttf
diff --git a/public/fonts/general-sans/GeneralSans-LightItalic.woff b/api/public/fonts/general-sans/GeneralSans-LightItalic.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-LightItalic.woff
rename to api/public/fonts/general-sans/GeneralSans-LightItalic.woff
diff --git a/public/fonts/general-sans/GeneralSans-LightItalic.woff2 b/api/public/fonts/general-sans/GeneralSans-LightItalic.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-LightItalic.woff2
rename to api/public/fonts/general-sans/GeneralSans-LightItalic.woff2
diff --git a/public/fonts/general-sans/GeneralSans-Medium.eot b/api/public/fonts/general-sans/GeneralSans-Medium.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Medium.eot
rename to api/public/fonts/general-sans/GeneralSans-Medium.eot
diff --git a/public/fonts/general-sans/GeneralSans-Medium.ttf b/api/public/fonts/general-sans/GeneralSans-Medium.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Medium.ttf
rename to api/public/fonts/general-sans/GeneralSans-Medium.ttf
diff --git a/public/fonts/general-sans/GeneralSans-Medium.woff b/api/public/fonts/general-sans/GeneralSans-Medium.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Medium.woff
rename to api/public/fonts/general-sans/GeneralSans-Medium.woff
diff --git a/public/fonts/general-sans/GeneralSans-Medium.woff2 b/api/public/fonts/general-sans/GeneralSans-Medium.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Medium.woff2
rename to api/public/fonts/general-sans/GeneralSans-Medium.woff2
diff --git a/public/fonts/general-sans/GeneralSans-MediumItalic.eot b/api/public/fonts/general-sans/GeneralSans-MediumItalic.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-MediumItalic.eot
rename to api/public/fonts/general-sans/GeneralSans-MediumItalic.eot
diff --git a/public/fonts/general-sans/GeneralSans-MediumItalic.ttf b/api/public/fonts/general-sans/GeneralSans-MediumItalic.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-MediumItalic.ttf
rename to api/public/fonts/general-sans/GeneralSans-MediumItalic.ttf
diff --git a/public/fonts/general-sans/GeneralSans-MediumItalic.woff b/api/public/fonts/general-sans/GeneralSans-MediumItalic.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-MediumItalic.woff
rename to api/public/fonts/general-sans/GeneralSans-MediumItalic.woff
diff --git a/public/fonts/general-sans/GeneralSans-MediumItalic.woff2 b/api/public/fonts/general-sans/GeneralSans-MediumItalic.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-MediumItalic.woff2
rename to api/public/fonts/general-sans/GeneralSans-MediumItalic.woff2
diff --git a/public/fonts/general-sans/GeneralSans-Regular.eot b/api/public/fonts/general-sans/GeneralSans-Regular.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Regular.eot
rename to api/public/fonts/general-sans/GeneralSans-Regular.eot
diff --git a/public/fonts/general-sans/GeneralSans-Regular.ttf b/api/public/fonts/general-sans/GeneralSans-Regular.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Regular.ttf
rename to api/public/fonts/general-sans/GeneralSans-Regular.ttf
diff --git a/public/fonts/general-sans/GeneralSans-Regular.woff b/api/public/fonts/general-sans/GeneralSans-Regular.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Regular.woff
rename to api/public/fonts/general-sans/GeneralSans-Regular.woff
diff --git a/public/fonts/general-sans/GeneralSans-Regular.woff2 b/api/public/fonts/general-sans/GeneralSans-Regular.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Regular.woff2
rename to api/public/fonts/general-sans/GeneralSans-Regular.woff2
diff --git a/public/fonts/general-sans/GeneralSans-Semibold.eot b/api/public/fonts/general-sans/GeneralSans-Semibold.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Semibold.eot
rename to api/public/fonts/general-sans/GeneralSans-Semibold.eot
diff --git a/public/fonts/general-sans/GeneralSans-Semibold.ttf b/api/public/fonts/general-sans/GeneralSans-Semibold.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Semibold.ttf
rename to api/public/fonts/general-sans/GeneralSans-Semibold.ttf
diff --git a/public/fonts/general-sans/GeneralSans-Semibold.woff b/api/public/fonts/general-sans/GeneralSans-Semibold.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Semibold.woff
rename to api/public/fonts/general-sans/GeneralSans-Semibold.woff
diff --git a/public/fonts/general-sans/GeneralSans-Semibold.woff2 b/api/public/fonts/general-sans/GeneralSans-Semibold.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Semibold.woff2
rename to api/public/fonts/general-sans/GeneralSans-Semibold.woff2
diff --git a/public/fonts/general-sans/GeneralSans-SemiboldItalic.eot b/api/public/fonts/general-sans/GeneralSans-SemiboldItalic.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-SemiboldItalic.eot
rename to api/public/fonts/general-sans/GeneralSans-SemiboldItalic.eot
diff --git a/public/fonts/general-sans/GeneralSans-SemiboldItalic.ttf b/api/public/fonts/general-sans/GeneralSans-SemiboldItalic.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-SemiboldItalic.ttf
rename to api/public/fonts/general-sans/GeneralSans-SemiboldItalic.ttf
diff --git a/public/fonts/general-sans/GeneralSans-SemiboldItalic.woff b/api/public/fonts/general-sans/GeneralSans-SemiboldItalic.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-SemiboldItalic.woff
rename to api/public/fonts/general-sans/GeneralSans-SemiboldItalic.woff
diff --git a/public/fonts/general-sans/GeneralSans-SemiboldItalic.woff2 b/api/public/fonts/general-sans/GeneralSans-SemiboldItalic.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-SemiboldItalic.woff2
rename to api/public/fonts/general-sans/GeneralSans-SemiboldItalic.woff2
diff --git a/public/fonts/general-sans/GeneralSans-Variable.eot b/api/public/fonts/general-sans/GeneralSans-Variable.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Variable.eot
rename to api/public/fonts/general-sans/GeneralSans-Variable.eot
diff --git a/public/fonts/general-sans/GeneralSans-Variable.ttf b/api/public/fonts/general-sans/GeneralSans-Variable.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Variable.ttf
rename to api/public/fonts/general-sans/GeneralSans-Variable.ttf
diff --git a/public/fonts/general-sans/GeneralSans-Variable.woff b/api/public/fonts/general-sans/GeneralSans-Variable.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Variable.woff
rename to api/public/fonts/general-sans/GeneralSans-Variable.woff
diff --git a/public/fonts/general-sans/GeneralSans-Variable.woff2 b/api/public/fonts/general-sans/GeneralSans-Variable.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-Variable.woff2
rename to api/public/fonts/general-sans/GeneralSans-Variable.woff2
diff --git a/public/fonts/general-sans/GeneralSans-VariableItalic.eot b/api/public/fonts/general-sans/GeneralSans-VariableItalic.eot
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-VariableItalic.eot
rename to api/public/fonts/general-sans/GeneralSans-VariableItalic.eot
diff --git a/public/fonts/general-sans/GeneralSans-VariableItalic.ttf b/api/public/fonts/general-sans/GeneralSans-VariableItalic.ttf
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-VariableItalic.ttf
rename to api/public/fonts/general-sans/GeneralSans-VariableItalic.ttf
diff --git a/public/fonts/general-sans/GeneralSans-VariableItalic.woff b/api/public/fonts/general-sans/GeneralSans-VariableItalic.woff
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-VariableItalic.woff
rename to api/public/fonts/general-sans/GeneralSans-VariableItalic.woff
diff --git a/public/fonts/general-sans/GeneralSans-VariableItalic.woff2 b/api/public/fonts/general-sans/GeneralSans-VariableItalic.woff2
similarity index 100%
rename from public/fonts/general-sans/GeneralSans-VariableItalic.woff2
rename to api/public/fonts/general-sans/GeneralSans-VariableItalic.woff2
diff --git a/public/index.php b/api/public/index.php
similarity index 100%
rename from public/index.php
rename to api/public/index.php
diff --git a/public/robots.txt b/api/public/robots.txt
similarity index 100%
rename from public/robots.txt
rename to api/public/robots.txt
diff --git a/public/vendor/horizon/app-dark.css b/api/public/vendor/horizon/app-dark.css
similarity index 100%
rename from public/vendor/horizon/app-dark.css
rename to api/public/vendor/horizon/app-dark.css
diff --git a/public/vendor/horizon/app.css b/api/public/vendor/horizon/app.css
similarity index 100%
rename from public/vendor/horizon/app.css
rename to api/public/vendor/horizon/app.css
diff --git a/public/vendor/horizon/app.js b/api/public/vendor/horizon/app.js
similarity index 100%
rename from public/vendor/horizon/app.js
rename to api/public/vendor/horizon/app.js
diff --git a/public/vendor/horizon/img/favicon.png b/api/public/vendor/horizon/img/favicon.png
similarity index 100%
rename from public/vendor/horizon/img/favicon.png
rename to api/public/vendor/horizon/img/favicon.png
diff --git a/public/vendor/horizon/img/horizon.svg b/api/public/vendor/horizon/img/horizon.svg
similarity index 100%
rename from public/vendor/horizon/img/horizon.svg
rename to api/public/vendor/horizon/img/horizon.svg
diff --git a/public/vendor/horizon/img/sprite.svg b/api/public/vendor/horizon/img/sprite.svg
similarity index 100%
rename from public/vendor/horizon/img/sprite.svg
rename to api/public/vendor/horizon/img/sprite.svg
diff --git a/public/vendor/horizon/mix-manifest.json b/api/public/vendor/horizon/mix-manifest.json
similarity index 100%
rename from public/vendor/horizon/mix-manifest.json
rename to api/public/vendor/horizon/mix-manifest.json
diff --git a/public/vendor/mailcoach-editor/assets/editor.27f354bb.css b/api/public/vendor/mailcoach-editor/assets/editor.27f354bb.css
similarity index 100%
rename from public/vendor/mailcoach-editor/assets/editor.27f354bb.css
rename to api/public/vendor/mailcoach-editor/assets/editor.27f354bb.css
diff --git a/public/vendor/mailcoach-editor/assets/editor.e48a8a0e.js b/api/public/vendor/mailcoach-editor/assets/editor.e48a8a0e.js
similarity index 100%
rename from public/vendor/mailcoach-editor/assets/editor.e48a8a0e.js
rename to api/public/vendor/mailcoach-editor/assets/editor.e48a8a0e.js
diff --git a/public/vendor/mailcoach-editor/assets/vendor.871f4f88.js b/api/public/vendor/mailcoach-editor/assets/vendor.871f4f88.js
similarity index 100%
rename from public/vendor/mailcoach-editor/assets/vendor.871f4f88.js
rename to api/public/vendor/mailcoach-editor/assets/vendor.871f4f88.js
diff --git a/public/vendor/mailcoach-editor/manifest.json b/api/public/vendor/mailcoach-editor/manifest.json
similarity index 100%
rename from public/vendor/mailcoach-editor/manifest.json
rename to api/public/vendor/mailcoach-editor/manifest.json
diff --git a/public/vendor/mailcoach/app.css b/api/public/vendor/mailcoach/app.css
similarity index 100%
rename from public/vendor/mailcoach/app.css
rename to api/public/vendor/mailcoach/app.css
diff --git a/public/vendor/mailcoach/app.js b/api/public/vendor/mailcoach/app.js
similarity index 100%
rename from public/vendor/mailcoach/app.js
rename to api/public/vendor/mailcoach/app.js
diff --git a/public/vendor/mailcoach/app.js.LICENSE.txt b/api/public/vendor/mailcoach/app.js.LICENSE.txt
similarity index 100%
rename from public/vendor/mailcoach/app.js.LICENSE.txt
rename to api/public/vendor/mailcoach/app.js.LICENSE.txt
diff --git a/public/vendor/mailcoach/images/auth-footer.jpg b/api/public/vendor/mailcoach/images/auth-footer.jpg
similarity index 100%
rename from public/vendor/mailcoach/images/auth-footer.jpg
rename to api/public/vendor/mailcoach/images/auth-footer.jpg
diff --git a/public/vendor/model-stats/app.css b/api/public/vendor/model-stats/app.css
similarity index 100%
rename from public/vendor/model-stats/app.css
rename to api/public/vendor/model-stats/app.css
diff --git a/public/vendor/model-stats/app.js b/api/public/vendor/model-stats/app.js
similarity index 100%
rename from public/vendor/model-stats/app.js
rename to api/public/vendor/model-stats/app.js
diff --git a/public/vendor/model-stats/app.js.LICENSE.txt b/api/public/vendor/model-stats/app.js.LICENSE.txt
similarity index 100%
rename from public/vendor/model-stats/app.js.LICENSE.txt
rename to api/public/vendor/model-stats/app.js.LICENSE.txt
diff --git a/public/vendor/model-stats/mix-manifest.json b/api/public/vendor/model-stats/mix-manifest.json
similarity index 100%
rename from public/vendor/model-stats/mix-manifest.json
rename to api/public/vendor/model-stats/mix-manifest.json
diff --git a/public/vendor/model-stats/resources_js_views_dashboard_vue.js b/api/public/vendor/model-stats/resources_js_views_dashboard_vue.js
similarity index 100%
rename from public/vendor/model-stats/resources_js_views_dashboard_vue.js
rename to api/public/vendor/model-stats/resources_js_views_dashboard_vue.js
diff --git a/public/vendor/model-stats/resources_js_views_errors_404_vue.js b/api/public/vendor/model-stats/resources_js_views_errors_404_vue.js
similarity index 100%
rename from public/vendor/model-stats/resources_js_views_errors_404_vue.js
rename to api/public/vendor/model-stats/resources_js_views_errors_404_vue.js
diff --git a/public/vendor/vapor-ui/app.css b/api/public/vendor/vapor-ui/app.css
similarity index 100%
rename from public/vendor/vapor-ui/app.css
rename to api/public/vendor/vapor-ui/app.css
diff --git a/public/vendor/vapor-ui/app.js b/api/public/vendor/vapor-ui/app.js
similarity index 100%
rename from public/vendor/vapor-ui/app.js
rename to api/public/vendor/vapor-ui/app.js
diff --git a/public/vendor/vapor-ui/mix-manifest.json b/api/public/vendor/vapor-ui/mix-manifest.json
similarity index 100%
rename from public/vendor/vapor-ui/mix-manifest.json
rename to api/public/vendor/vapor-ui/mix-manifest.json
diff --git a/public/web.config b/api/public/web.config
similarity index 100%
rename from public/web.config
rename to api/public/web.config
diff --git a/public/widgets/embed-min.js b/api/public/widgets/embed-min.js
similarity index 100%
rename from public/widgets/embed-min.js
rename to api/public/widgets/embed-min.js
diff --git a/public/widgets/embed.js b/api/public/widgets/embed.js
similarity index 100%
rename from public/widgets/embed.js
rename to api/public/widgets/embed.js
diff --git a/resources/data/country_code_mapper.json b/api/resources/data/country_code_mapper.json
similarity index 100%
rename from resources/data/country_code_mapper.json
rename to api/resources/data/country_code_mapper.json
diff --git a/resources/data/country_codes.json b/api/resources/data/country_codes.json
similarity index 100%
rename from resources/data/country_codes.json
rename to api/resources/data/country_codes.json
diff --git a/resources/data/forms/integrations.json b/api/resources/data/forms/integrations.json
similarity index 100%
rename from resources/data/forms/integrations.json
rename to api/resources/data/forms/integrations.json
diff --git a/resources/data/forms/templates/industries.json b/api/resources/data/forms/templates/industries.json
similarity index 100%
rename from resources/data/forms/templates/industries.json
rename to api/resources/data/forms/templates/industries.json
diff --git a/resources/data/forms/templates/types.json b/api/resources/data/forms/templates/types.json
similarity index 100%
rename from resources/data/forms/templates/types.json
rename to api/resources/data/forms/templates/types.json
diff --git a/resources/data/latin-map.json b/api/resources/data/latin-map.json
similarity index 100%
rename from resources/data/latin-map.json
rename to api/resources/data/latin-map.json
diff --git a/resources/data/open_filters.json b/api/resources/data/open_filters.json
similarity index 100%
rename from resources/data/open_filters.json
rename to api/resources/data/open_filters.json
diff --git a/resources/data/timezones.json b/api/resources/data/timezones.json
similarity index 100%
rename from resources/data/timezones.json
rename to api/resources/data/timezones.json
diff --git a/resources/lang/de-DE/auth.php b/api/resources/lang/de-DE/auth.php
similarity index 100%
rename from resources/lang/de-DE/auth.php
rename to api/resources/lang/de-DE/auth.php
diff --git a/resources/lang/de-DE/pagination.php b/api/resources/lang/de-DE/pagination.php
similarity index 100%
rename from resources/lang/de-DE/pagination.php
rename to api/resources/lang/de-DE/pagination.php
diff --git a/resources/lang/de-DE/passwords.php b/api/resources/lang/de-DE/passwords.php
similarity index 100%
rename from resources/lang/de-DE/passwords.php
rename to api/resources/lang/de-DE/passwords.php
diff --git a/resources/lang/de-DE/validation.php b/api/resources/lang/de-DE/validation.php
similarity index 100%
rename from resources/lang/de-DE/validation.php
rename to api/resources/lang/de-DE/validation.php
diff --git a/resources/lang/de-DE/verification.php b/api/resources/lang/de-DE/verification.php
similarity index 100%
rename from resources/lang/de-DE/verification.php
rename to api/resources/lang/de-DE/verification.php
diff --git a/resources/lang/en/auth.php b/api/resources/lang/en/auth.php
similarity index 100%
rename from resources/lang/en/auth.php
rename to api/resources/lang/en/auth.php
diff --git a/resources/lang/en/pagination.php b/api/resources/lang/en/pagination.php
similarity index 100%
rename from resources/lang/en/pagination.php
rename to api/resources/lang/en/pagination.php
diff --git a/resources/lang/en/passwords.php b/api/resources/lang/en/passwords.php
similarity index 100%
rename from resources/lang/en/passwords.php
rename to api/resources/lang/en/passwords.php
diff --git a/resources/lang/en/validation.php b/api/resources/lang/en/validation.php
similarity index 100%
rename from resources/lang/en/validation.php
rename to api/resources/lang/en/validation.php
diff --git a/resources/lang/en/verification.php b/api/resources/lang/en/verification.php
similarity index 100%
rename from resources/lang/en/verification.php
rename to api/resources/lang/en/verification.php
diff --git a/resources/lang/es/auth.php b/api/resources/lang/es/auth.php
similarity index 100%
rename from resources/lang/es/auth.php
rename to api/resources/lang/es/auth.php
diff --git a/resources/lang/es/pagination.php b/api/resources/lang/es/pagination.php
similarity index 100%
rename from resources/lang/es/pagination.php
rename to api/resources/lang/es/pagination.php
diff --git a/resources/lang/es/passwords.php b/api/resources/lang/es/passwords.php
similarity index 100%
rename from resources/lang/es/passwords.php
rename to api/resources/lang/es/passwords.php
diff --git a/resources/lang/es/validation.php b/api/resources/lang/es/validation.php
similarity index 100%
rename from resources/lang/es/validation.php
rename to api/resources/lang/es/validation.php
diff --git a/resources/lang/nb-NO/auth.php b/api/resources/lang/nb-NO/auth.php
similarity index 100%
rename from resources/lang/nb-NO/auth.php
rename to api/resources/lang/nb-NO/auth.php
diff --git a/resources/lang/nb-NO/pagination.php b/api/resources/lang/nb-NO/pagination.php
similarity index 100%
rename from resources/lang/nb-NO/pagination.php
rename to api/resources/lang/nb-NO/pagination.php
diff --git a/resources/lang/nb-NO/passwords.php b/api/resources/lang/nb-NO/passwords.php
similarity index 100%
rename from resources/lang/nb-NO/passwords.php
rename to api/resources/lang/nb-NO/passwords.php
diff --git a/resources/lang/nb-NO/validation.php b/api/resources/lang/nb-NO/validation.php
similarity index 100%
rename from resources/lang/nb-NO/validation.php
rename to api/resources/lang/nb-NO/validation.php
diff --git a/resources/lang/nb-NO/verification.php b/api/resources/lang/nb-NO/verification.php
similarity index 100%
rename from resources/lang/nb-NO/verification.php
rename to api/resources/lang/nb-NO/verification.php
diff --git a/resources/lang/pt-BR/auth.php b/api/resources/lang/pt-BR/auth.php
similarity index 100%
rename from resources/lang/pt-BR/auth.php
rename to api/resources/lang/pt-BR/auth.php
diff --git a/resources/lang/pt-BR/pagination.php b/api/resources/lang/pt-BR/pagination.php
similarity index 100%
rename from resources/lang/pt-BR/pagination.php
rename to api/resources/lang/pt-BR/pagination.php
diff --git a/resources/lang/pt-BR/passwords.php b/api/resources/lang/pt-BR/passwords.php
similarity index 100%
rename from resources/lang/pt-BR/passwords.php
rename to api/resources/lang/pt-BR/passwords.php
diff --git a/resources/lang/pt-BR/validation.php b/api/resources/lang/pt-BR/validation.php
similarity index 100%
rename from resources/lang/pt-BR/validation.php
rename to api/resources/lang/pt-BR/validation.php
diff --git a/resources/lang/zh-CN/auth.php b/api/resources/lang/zh-CN/auth.php
similarity index 100%
rename from resources/lang/zh-CN/auth.php
rename to api/resources/lang/zh-CN/auth.php
diff --git a/resources/lang/zh-CN/pagination.php b/api/resources/lang/zh-CN/pagination.php
similarity index 100%
rename from resources/lang/zh-CN/pagination.php
rename to api/resources/lang/zh-CN/pagination.php
diff --git a/resources/lang/zh-CN/passwords.php b/api/resources/lang/zh-CN/passwords.php
similarity index 100%
rename from resources/lang/zh-CN/passwords.php
rename to api/resources/lang/zh-CN/passwords.php
diff --git a/resources/lang/zh-CN/validation.php b/api/resources/lang/zh-CN/validation.php
similarity index 100%
rename from resources/lang/zh-CN/validation.php
rename to api/resources/lang/zh-CN/validation.php
diff --git a/resources/views/errors/401.blade.php b/api/resources/views/errors/401.blade.php
similarity index 100%
rename from resources/views/errors/401.blade.php
rename to api/resources/views/errors/401.blade.php
diff --git a/resources/views/errors/403.blade.php b/api/resources/views/errors/403.blade.php
similarity index 100%
rename from resources/views/errors/403.blade.php
rename to api/resources/views/errors/403.blade.php
diff --git a/resources/views/errors/404.blade.php b/api/resources/views/errors/404.blade.php
similarity index 100%
rename from resources/views/errors/404.blade.php
rename to api/resources/views/errors/404.blade.php
diff --git a/resources/views/errors/419.blade.php b/api/resources/views/errors/419.blade.php
similarity index 100%
rename from resources/views/errors/419.blade.php
rename to api/resources/views/errors/419.blade.php
diff --git a/resources/views/errors/429.blade.php b/api/resources/views/errors/429.blade.php
similarity index 100%
rename from resources/views/errors/429.blade.php
rename to api/resources/views/errors/429.blade.php
diff --git a/resources/views/errors/500.blade.php b/api/resources/views/errors/500.blade.php
similarity index 100%
rename from resources/views/errors/500.blade.php
rename to api/resources/views/errors/500.blade.php
diff --git a/resources/views/errors/503.blade.php b/api/resources/views/errors/503.blade.php
similarity index 100%
rename from resources/views/errors/503.blade.php
rename to api/resources/views/errors/503.blade.php
diff --git a/resources/views/errors/illustrated-layout.blade.php b/api/resources/views/errors/illustrated-layout.blade.php
similarity index 100%
rename from resources/views/errors/illustrated-layout.blade.php
rename to api/resources/views/errors/illustrated-layout.blade.php
diff --git a/resources/views/errors/layout.blade.php b/api/resources/views/errors/layout.blade.php
similarity index 100%
rename from resources/views/errors/layout.blade.php
rename to api/resources/views/errors/layout.blade.php
diff --git a/resources/views/errors/minimal.blade.php b/api/resources/views/errors/minimal.blade.php
similarity index 100%
rename from resources/views/errors/minimal.blade.php
rename to api/resources/views/errors/minimal.blade.php
diff --git a/resources/views/mail/form/confirmation-submission-notification.blade.php b/api/resources/views/mail/form/confirmation-submission-notification.blade.php
similarity index 100%
rename from resources/views/mail/form/confirmation-submission-notification.blade.php
rename to api/resources/views/mail/form/confirmation-submission-notification.blade.php
diff --git a/resources/views/mail/form/created.blade.php b/api/resources/views/mail/form/created.blade.php
similarity index 100%
rename from resources/views/mail/form/created.blade.php
rename to api/resources/views/mail/form/created.blade.php
diff --git a/resources/views/mail/form/integrations-event-created.blade.php b/api/resources/views/mail/form/integrations-event-created.blade.php
similarity index 100%
rename from resources/views/mail/form/integrations-event-created.blade.php
rename to api/resources/views/mail/form/integrations-event-created.blade.php
diff --git a/resources/views/mail/form/submission-notification.blade.php b/api/resources/views/mail/form/submission-notification.blade.php
similarity index 100%
rename from resources/views/mail/form/submission-notification.blade.php
rename to api/resources/views/mail/form/submission-notification.blade.php
diff --git a/resources/views/mail/user/invitation.blade.php b/api/resources/views/mail/user/invitation.blade.php
similarity index 100%
rename from resources/views/mail/user/invitation.blade.php
rename to api/resources/views/mail/user/invitation.blade.php
diff --git a/resources/views/notion/callback.blade.php b/api/resources/views/notion/callback.blade.php
similarity index 100%
rename from resources/views/notion/callback.blade.php
rename to api/resources/views/notion/callback.blade.php
diff --git a/resources/views/oauth/callback.blade.php b/api/resources/views/oauth/callback.blade.php
similarity index 100%
rename from resources/views/oauth/callback.blade.php
rename to api/resources/views/oauth/callback.blade.php
diff --git a/resources/views/oauth/emailTaken.blade.php b/api/resources/views/oauth/emailTaken.blade.php
similarity index 100%
rename from resources/views/oauth/emailTaken.blade.php
rename to api/resources/views/oauth/emailTaken.blade.php
diff --git a/resources/views/vendor/mail/html/button.blade.php b/api/resources/views/vendor/mail/html/button.blade.php
similarity index 100%
rename from resources/views/vendor/mail/html/button.blade.php
rename to api/resources/views/vendor/mail/html/button.blade.php
diff --git a/resources/views/vendor/mail/html/footer.blade.php b/api/resources/views/vendor/mail/html/footer.blade.php
similarity index 100%
rename from resources/views/vendor/mail/html/footer.blade.php
rename to api/resources/views/vendor/mail/html/footer.blade.php
diff --git a/resources/views/vendor/mail/html/header.blade.php b/api/resources/views/vendor/mail/html/header.blade.php
similarity index 100%
rename from resources/views/vendor/mail/html/header.blade.php
rename to api/resources/views/vendor/mail/html/header.blade.php
diff --git a/resources/views/vendor/mail/html/layout.blade.php b/api/resources/views/vendor/mail/html/layout.blade.php
similarity index 100%
rename from resources/views/vendor/mail/html/layout.blade.php
rename to api/resources/views/vendor/mail/html/layout.blade.php
diff --git a/resources/views/vendor/mail/html/message.blade.php b/api/resources/views/vendor/mail/html/message.blade.php
similarity index 100%
rename from resources/views/vendor/mail/html/message.blade.php
rename to api/resources/views/vendor/mail/html/message.blade.php
diff --git a/resources/views/vendor/mail/html/panel.blade.php b/api/resources/views/vendor/mail/html/panel.blade.php
similarity index 100%
rename from resources/views/vendor/mail/html/panel.blade.php
rename to api/resources/views/vendor/mail/html/panel.blade.php
diff --git a/resources/views/vendor/mail/html/subcopy.blade.php b/api/resources/views/vendor/mail/html/subcopy.blade.php
similarity index 100%
rename from resources/views/vendor/mail/html/subcopy.blade.php
rename to api/resources/views/vendor/mail/html/subcopy.blade.php
diff --git a/resources/views/vendor/mail/html/table.blade.php b/api/resources/views/vendor/mail/html/table.blade.php
similarity index 100%
rename from resources/views/vendor/mail/html/table.blade.php
rename to api/resources/views/vendor/mail/html/table.blade.php
diff --git a/resources/views/vendor/mail/html/themes/default.css b/api/resources/views/vendor/mail/html/themes/default.css
similarity index 100%
rename from resources/views/vendor/mail/html/themes/default.css
rename to api/resources/views/vendor/mail/html/themes/default.css
diff --git a/resources/views/vendor/mail/text/button.blade.php b/api/resources/views/vendor/mail/text/button.blade.php
similarity index 100%
rename from resources/views/vendor/mail/text/button.blade.php
rename to api/resources/views/vendor/mail/text/button.blade.php
diff --git a/resources/views/vendor/mail/text/footer.blade.php b/api/resources/views/vendor/mail/text/footer.blade.php
similarity index 100%
rename from resources/views/vendor/mail/text/footer.blade.php
rename to api/resources/views/vendor/mail/text/footer.blade.php
diff --git a/resources/views/vendor/mail/text/header.blade.php b/api/resources/views/vendor/mail/text/header.blade.php
similarity index 100%
rename from resources/views/vendor/mail/text/header.blade.php
rename to api/resources/views/vendor/mail/text/header.blade.php
diff --git a/resources/views/vendor/mail/text/layout.blade.php b/api/resources/views/vendor/mail/text/layout.blade.php
similarity index 100%
rename from resources/views/vendor/mail/text/layout.blade.php
rename to api/resources/views/vendor/mail/text/layout.blade.php
diff --git a/resources/views/vendor/mail/text/message.blade.php b/api/resources/views/vendor/mail/text/message.blade.php
similarity index 100%
rename from resources/views/vendor/mail/text/message.blade.php
rename to api/resources/views/vendor/mail/text/message.blade.php
diff --git a/resources/views/vendor/mail/text/panel.blade.php b/api/resources/views/vendor/mail/text/panel.blade.php
similarity index 100%
rename from resources/views/vendor/mail/text/panel.blade.php
rename to api/resources/views/vendor/mail/text/panel.blade.php
diff --git a/resources/views/vendor/mail/text/subcopy.blade.php b/api/resources/views/vendor/mail/text/subcopy.blade.php
similarity index 100%
rename from resources/views/vendor/mail/text/subcopy.blade.php
rename to api/resources/views/vendor/mail/text/subcopy.blade.php
diff --git a/resources/views/vendor/mail/text/table.blade.php b/api/resources/views/vendor/mail/text/table.blade.php
similarity index 100%
rename from resources/views/vendor/mail/text/table.blade.php
rename to api/resources/views/vendor/mail/text/table.blade.php
diff --git a/routes/api-external.php b/api/routes/api-external.php
similarity index 100%
rename from routes/api-external.php
rename to api/routes/api-external.php
diff --git a/routes/api.php b/api/routes/api.php
similarity index 100%
rename from routes/api.php
rename to api/routes/api.php
diff --git a/routes/channels.php b/api/routes/channels.php
similarity index 100%
rename from routes/channels.php
rename to api/routes/channels.php
diff --git a/routes/console.php b/api/routes/console.php
similarity index 100%
rename from routes/console.php
rename to api/routes/console.php
diff --git a/server.php b/api/server.php
similarity index 100%
rename from server.php
rename to api/server.php
diff --git a/storage/app/.gitignore b/api/storage/app/.gitignore
similarity index 100%
rename from storage/app/.gitignore
rename to api/storage/app/.gitignore
diff --git a/storage/app/public/.gitignore b/api/storage/app/public/.gitignore
similarity index 100%
rename from storage/app/public/.gitignore
rename to api/storage/app/public/.gitignore
diff --git a/storage/framework/.gitignore b/api/storage/framework/.gitignore
similarity index 100%
rename from storage/framework/.gitignore
rename to api/storage/framework/.gitignore
diff --git a/storage/framework/cache/.gitignore b/api/storage/framework/cache/.gitignore
similarity index 100%
rename from storage/framework/cache/.gitignore
rename to api/storage/framework/cache/.gitignore
diff --git a/storage/framework/cache/data/.gitignore b/api/storage/framework/cache/data/.gitignore
similarity index 100%
rename from storage/framework/cache/data/.gitignore
rename to api/storage/framework/cache/data/.gitignore
diff --git a/storage/framework/disposable_domains.json b/api/storage/framework/disposable_domains.json
similarity index 100%
rename from storage/framework/disposable_domains.json
rename to api/storage/framework/disposable_domains.json
diff --git a/storage/framework/sessions/.gitignore b/api/storage/framework/sessions/.gitignore
similarity index 100%
rename from storage/framework/sessions/.gitignore
rename to api/storage/framework/sessions/.gitignore
diff --git a/storage/framework/testing/.gitignore b/api/storage/framework/testing/.gitignore
similarity index 100%
rename from storage/framework/testing/.gitignore
rename to api/storage/framework/testing/.gitignore
diff --git a/storage/framework/views/.gitignore b/api/storage/framework/views/.gitignore
similarity index 100%
rename from storage/framework/views/.gitignore
rename to api/storage/framework/views/.gitignore
diff --git a/storage/logs/.gitignore b/api/storage/logs/.gitignore
similarity index 100%
rename from storage/logs/.gitignore
rename to api/storage/logs/.gitignore
diff --git a/tests/Browser/LoginTest.php b/api/tests/Browser/LoginTest.php
similarity index 100%
rename from tests/Browser/LoginTest.php
rename to api/tests/Browser/LoginTest.php
diff --git a/tests/Browser/Pages/Home.php b/api/tests/Browser/Pages/Home.php
similarity index 100%
rename from tests/Browser/Pages/Home.php
rename to api/tests/Browser/Pages/Home.php
diff --git a/tests/Browser/Pages/HomePage.php b/api/tests/Browser/Pages/HomePage.php
similarity index 100%
rename from tests/Browser/Pages/HomePage.php
rename to api/tests/Browser/Pages/HomePage.php
diff --git a/tests/Browser/Pages/Login.php b/api/tests/Browser/Pages/Login.php
similarity index 100%
rename from tests/Browser/Pages/Login.php
rename to api/tests/Browser/Pages/Login.php
diff --git a/tests/Browser/Pages/Onboarding.php b/api/tests/Browser/Pages/Onboarding.php
similarity index 100%
rename from tests/Browser/Pages/Onboarding.php
rename to api/tests/Browser/Pages/Onboarding.php
diff --git a/tests/Browser/Pages/Page.php b/api/tests/Browser/Pages/Page.php
similarity index 100%
rename from tests/Browser/Pages/Page.php
rename to api/tests/Browser/Pages/Page.php
diff --git a/tests/Browser/Pages/Register.php b/api/tests/Browser/Pages/Register.php
similarity index 100%
rename from tests/Browser/Pages/Register.php
rename to api/tests/Browser/Pages/Register.php
diff --git a/tests/Browser/RegisterTest.php b/api/tests/Browser/RegisterTest.php
similarity index 100%
rename from tests/Browser/RegisterTest.php
rename to api/tests/Browser/RegisterTest.php
diff --git a/tests/Browser/WelcomeTest.php b/api/tests/Browser/WelcomeTest.php
similarity index 100%
rename from tests/Browser/WelcomeTest.php
rename to api/tests/Browser/WelcomeTest.php
diff --git a/tests/Browser/console/.gitignore b/api/tests/Browser/console/.gitignore
similarity index 100%
rename from tests/Browser/console/.gitignore
rename to api/tests/Browser/console/.gitignore
diff --git a/tests/Browser/screenshots/.gitignore b/api/tests/Browser/screenshots/.gitignore
similarity index 100%
rename from tests/Browser/screenshots/.gitignore
rename to api/tests/Browser/screenshots/.gitignore
diff --git a/tests/Browser/source/.gitignore b/api/tests/Browser/source/.gitignore
similarity index 100%
rename from tests/Browser/source/.gitignore
rename to api/tests/Browser/source/.gitignore
diff --git a/tests/CreatesApplication.php b/api/tests/CreatesApplication.php
similarity index 100%
rename from tests/CreatesApplication.php
rename to api/tests/CreatesApplication.php
diff --git a/tests/DuskTestCase.php b/api/tests/DuskTestCase.php
similarity index 100%
rename from tests/DuskTestCase.php
rename to api/tests/DuskTestCase.php
diff --git a/tests/Feature/Forms/AnswerFormTest.php b/api/tests/Feature/Forms/AnswerFormTest.php
similarity index 100%
rename from tests/Feature/Forms/AnswerFormTest.php
rename to api/tests/Feature/Forms/AnswerFormTest.php
diff --git a/tests/Feature/Forms/CleanDatabaseTest.php b/api/tests/Feature/Forms/CleanDatabaseTest.php
similarity index 100%
rename from tests/Feature/Forms/CleanDatabaseTest.php
rename to api/tests/Feature/Forms/CleanDatabaseTest.php
diff --git a/tests/Feature/Forms/ConfirmationEmailTest.php b/api/tests/Feature/Forms/ConfirmationEmailTest.php
similarity index 100%
rename from tests/Feature/Forms/ConfirmationEmailTest.php
rename to api/tests/Feature/Forms/ConfirmationEmailTest.php
diff --git a/tests/Feature/Forms/CreateDynamicSelectOptionTest.php b/api/tests/Feature/Forms/CreateDynamicSelectOptionTest.php
similarity index 100%
rename from tests/Feature/Forms/CreateDynamicSelectOptionTest.php
rename to api/tests/Feature/Forms/CreateDynamicSelectOptionTest.php
diff --git a/tests/Feature/Forms/FormCaptchaTest.php b/api/tests/Feature/Forms/FormCaptchaTest.php
similarity index 100%
rename from tests/Feature/Forms/FormCaptchaTest.php
rename to api/tests/Feature/Forms/FormCaptchaTest.php
diff --git a/tests/Feature/Forms/FormIntegrationEventTest.php b/api/tests/Feature/Forms/FormIntegrationEventTest.php
similarity index 100%
rename from tests/Feature/Forms/FormIntegrationEventTest.php
rename to api/tests/Feature/Forms/FormIntegrationEventTest.php
diff --git a/tests/Feature/Forms/FormIntegrationTest.php b/api/tests/Feature/Forms/FormIntegrationTest.php
similarity index 100%
rename from tests/Feature/Forms/FormIntegrationTest.php
rename to api/tests/Feature/Forms/FormIntegrationTest.php
diff --git a/tests/Feature/Forms/FormLogicTest.php b/api/tests/Feature/Forms/FormLogicTest.php
similarity index 100%
rename from tests/Feature/Forms/FormLogicTest.php
rename to api/tests/Feature/Forms/FormLogicTest.php
diff --git a/tests/Feature/Forms/FormPasswordTest.php b/api/tests/Feature/Forms/FormPasswordTest.php
similarity index 100%
rename from tests/Feature/Forms/FormPasswordTest.php
rename to api/tests/Feature/Forms/FormPasswordTest.php
diff --git a/tests/Feature/Forms/FormPropertyLogicTest.php b/api/tests/Feature/Forms/FormPropertyLogicTest.php
similarity index 100%
rename from tests/Feature/Forms/FormPropertyLogicTest.php
rename to api/tests/Feature/Forms/FormPropertyLogicTest.php
diff --git a/tests/Feature/Forms/FormStatTest.php b/api/tests/Feature/Forms/FormStatTest.php
similarity index 100%
rename from tests/Feature/Forms/FormStatTest.php
rename to api/tests/Feature/Forms/FormStatTest.php
diff --git a/tests/Feature/Forms/FormTest.php b/api/tests/Feature/Forms/FormTest.php
similarity index 100%
rename from tests/Feature/Forms/FormTest.php
rename to api/tests/Feature/Forms/FormTest.php
diff --git a/tests/Feature/Forms/FormUpdateTest.php b/api/tests/Feature/Forms/FormUpdateTest.php
similarity index 100%
rename from tests/Feature/Forms/FormUpdateTest.php
rename to api/tests/Feature/Forms/FormUpdateTest.php
diff --git a/tests/Feature/Forms/FormViewsTest.php b/api/tests/Feature/Forms/FormViewsTest.php
similarity index 100%
rename from tests/Feature/Forms/FormViewsTest.php
rename to api/tests/Feature/Forms/FormViewsTest.php
diff --git a/tests/Feature/Forms/HideBrandingOnUpgradeTest.php b/api/tests/Feature/Forms/HideBrandingOnUpgradeTest.php
similarity index 100%
rename from tests/Feature/Forms/HideBrandingOnUpgradeTest.php
rename to api/tests/Feature/Forms/HideBrandingOnUpgradeTest.php
diff --git a/tests/Feature/Forms/MatrixInputTest.php b/api/tests/Feature/Forms/MatrixInputTest.php
similarity index 100%
rename from tests/Feature/Forms/MatrixInputTest.php
rename to api/tests/Feature/Forms/MatrixInputTest.php
diff --git a/tests/Feature/Forms/UpdateWorkspaceSelectOptionJobTest.php b/api/tests/Feature/Forms/UpdateWorkspaceSelectOptionJobTest.php
similarity index 100%
rename from tests/Feature/Forms/UpdateWorkspaceSelectOptionJobTest.php
rename to api/tests/Feature/Forms/UpdateWorkspaceSelectOptionJobTest.php
diff --git a/tests/Feature/Integrations/Google/Sheets/SpreadsheetManagerTest.php b/api/tests/Feature/Integrations/Google/Sheets/SpreadsheetManagerTest.php
similarity index 100%
rename from tests/Feature/Integrations/Google/Sheets/SpreadsheetManagerTest.php
rename to api/tests/Feature/Integrations/Google/Sheets/SpreadsheetManagerTest.php
diff --git a/tests/Feature/LoginTest.php b/api/tests/Feature/LoginTest.php
similarity index 100%
rename from tests/Feature/LoginTest.php
rename to api/tests/Feature/LoginTest.php
diff --git a/tests/Feature/RegisterTest.php b/api/tests/Feature/RegisterTest.php
similarity index 100%
rename from tests/Feature/RegisterTest.php
rename to api/tests/Feature/RegisterTest.php
diff --git a/tests/Feature/SettingsTest.php b/api/tests/Feature/SettingsTest.php
similarity index 100%
rename from tests/Feature/SettingsTest.php
rename to api/tests/Feature/SettingsTest.php
diff --git a/tests/Feature/Submissions/EditSubmissionTest.php b/api/tests/Feature/Submissions/EditSubmissionTest.php
similarity index 100%
rename from tests/Feature/Submissions/EditSubmissionTest.php
rename to api/tests/Feature/Submissions/EditSubmissionTest.php
diff --git a/tests/Feature/TemplateTest.php b/api/tests/Feature/TemplateTest.php
similarity index 100%
rename from tests/Feature/TemplateTest.php
rename to api/tests/Feature/TemplateTest.php
diff --git a/tests/Feature/UserInviteTest.php b/api/tests/Feature/UserInviteTest.php
similarity index 100%
rename from tests/Feature/UserInviteTest.php
rename to api/tests/Feature/UserInviteTest.php
diff --git a/tests/Feature/VerificationTest.php b/api/tests/Feature/VerificationTest.php
similarity index 100%
rename from tests/Feature/VerificationTest.php
rename to api/tests/Feature/VerificationTest.php
diff --git a/tests/Feature/WorkspaceTest.php b/api/tests/Feature/WorkspaceTest.php
similarity index 100%
rename from tests/Feature/WorkspaceTest.php
rename to api/tests/Feature/WorkspaceTest.php
diff --git a/tests/Feature/WorkspaceUserTest.php b/api/tests/Feature/WorkspaceUserTest.php
similarity index 100%
rename from tests/Feature/WorkspaceUserTest.php
rename to api/tests/Feature/WorkspaceUserTest.php
diff --git a/tests/Feature/Zapier/IntegrationsTest.php b/api/tests/Feature/Zapier/IntegrationsTest.php
similarity index 100%
rename from tests/Feature/Zapier/IntegrationsTest.php
rename to api/tests/Feature/Zapier/IntegrationsTest.php
diff --git a/tests/Feature/Zapier/ListFormsTest.php b/api/tests/Feature/Zapier/ListFormsTest.php
similarity index 100%
rename from tests/Feature/Zapier/ListFormsTest.php
rename to api/tests/Feature/Zapier/ListFormsTest.php
diff --git a/tests/Feature/Zapier/ListWorkspacesTest.php b/api/tests/Feature/Zapier/ListWorkspacesTest.php
similarity index 100%
rename from tests/Feature/Zapier/ListWorkspacesTest.php
rename to api/tests/Feature/Zapier/ListWorkspacesTest.php
diff --git a/tests/Feature/Zapier/ValidateAuthTest.php b/api/tests/Feature/Zapier/ValidateAuthTest.php
similarity index 100%
rename from tests/Feature/Zapier/ValidateAuthTest.php
rename to api/tests/Feature/Zapier/ValidateAuthTest.php
diff --git a/tests/Helpers/FormSubmissionDataFactory.php b/api/tests/Helpers/FormSubmissionDataFactory.php
similarity index 100%
rename from tests/Helpers/FormSubmissionDataFactory.php
rename to api/tests/Helpers/FormSubmissionDataFactory.php
diff --git a/tests/Pest.php b/api/tests/Pest.php
similarity index 100%
rename from tests/Pest.php
rename to api/tests/Pest.php
diff --git a/tests/TestCase.php b/api/tests/TestCase.php
similarity index 100%
rename from tests/TestCase.php
rename to api/tests/TestCase.php
diff --git a/tests/TestHelpers.php b/api/tests/TestHelpers.php
similarity index 100%
rename from tests/TestHelpers.php
rename to api/tests/TestHelpers.php
diff --git a/tests/Unit/Rules/StorageFileTest.php b/api/tests/Unit/Rules/StorageFileTest.php
similarity index 100%
rename from tests/Unit/Rules/StorageFileTest.php
rename to api/tests/Unit/Rules/StorageFileTest.php
diff --git a/tests/Unit/Service/Forms/FormLogicPropertyResolverTest.php b/api/tests/Unit/Service/Forms/FormLogicPropertyResolverTest.php
similarity index 100%
rename from tests/Unit/Service/Forms/FormLogicPropertyResolverTest.php
rename to api/tests/Unit/Service/Forms/FormLogicPropertyResolverTest.php
diff --git a/tests/Unit/Service/Storage/StorageFileNameParserTest.php b/api/tests/Unit/Service/Storage/StorageFileNameParserTest.php
similarity index 100%
rename from tests/Unit/Service/Storage/StorageFileNameParserTest.php
rename to api/tests/Unit/Service/Storage/StorageFileNameParserTest.php
diff --git a/tests/Unit/TestHelpersTest.php b/api/tests/Unit/TestHelpersTest.php
similarity index 100%
rename from tests/Unit/TestHelpersTest.php
rename to api/tests/Unit/TestHelpersTest.php
diff --git a/vapor.yml b/api/vapor.yml
similarity index 100%
rename from vapor.yml
rename to api/vapor.yml
diff --git a/app/helpers.php b/app/helpers.php
deleted file mode 100644
index 86f2cbfc7..000000000
--- a/app/helpers.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-if(!function_exists('front_url')) {
- function front_url($path = '')
- {
- $baseUrl = config('app.front_url');
- if (! $baseUrl) {
- return $path;
- }
-
- return rtrim($baseUrl, '/').'/'.ltrim($path, '/');
- }
-}
-
-
-if(!function_exists('pricing_enabled')) {
- function pricing_enabled(): bool
- {
- return App::environment() !== 'testing' && !is_null(config('cashier.key'));
- }
-}
diff --git a/client/.env.docker b/client/.env.docker
index 21938a897..97e969c3a 100644
--- a/client/.env.docker
+++ b/client/.env.docker
@@ -1,13 +1,8 @@
-NUXT_LOG_LEVEL=
NUXT_PUBLIC_APP_URL=/
NUXT_PUBLIC_API_BASE=/api
NUXT_PRIVATE_API_BASE=http://ingress/api
NUXT_PUBLIC_AI_FEATURES_ENABLED=false
-NUXT_PUBLIC_AMPLITUDE_CODE=
-NUXT_PUBLIC_CRISP_WEBSITE_ID=
-NUXT_PUBLIC_CUSTOM_DOMAINS_ENABLED=
-NUXT_PUBLIC_ENV=local
+NUXT_PUBLIC_ENV=dev
NUXT_PUBLIC_GOOGLE_ANALYTICS_CODE=
NUXT_PUBLIC_H_CAPTCHA_SITE_KEY=
-NUXT_PUBLIC_PAID_PLANS_ENABLED=
NUXT_PUBLIC_S3_ENABLED=false
\ No newline at end of file
diff --git a/client/middleware/self-hosted-credentials.js b/client/middleware/self-hosted-credentials.js
index d90f0c4d2..6356aee5a 100644
--- a/client/middleware/self-hosted-credentials.js
+++ b/client/middleware/self-hosted-credentials.js
@@ -1,9 +1,10 @@
export default defineNuxtRouteMiddleware(() => {
- const authStore = useAuthStore()
- const runtimeConfig = useRuntimeConfig()
- if (runtimeConfig.public?.selfHosted) {
- if (authStore.check && authStore.user?.email === '[email protected]') {
- return navigateTo({ name: "update-credentials" })
- }
+ const authStore = useAuthStore()
+ const runtimeConfig = useRuntimeConfig()
+
+ if (runtimeConfig.public?.selfHosted) {
+ if (authStore.check && authStore.user?.email === '[email protected]') {
+ return navigateTo({ name: "update-credentials" })
}
- })
\ No newline at end of file
+ }
+})
\ No newline at end of file
diff --git a/client/pages/settings.vue b/client/pages/settings.vue
index 5d596c16e..9488b111b 100644
--- a/client/pages/settings.vue
+++ b/client/pages/settings.vue
@@ -47,7 +47,7 @@ import { computed } from "vue"
import { useAuthStore } from "../stores/auth"
definePageMeta({
- middleware: "auth",
+ middleware: ["auth", "self-hosted-credentials"],
})
useOpnSeoMeta({
diff --git a/docker-compose.yml b/docker-compose.yml
index d12906c59..f796c8356 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -17,28 +17,23 @@ services:
AWS_REGION: eu-west-1
AWS_BUCKET: laravel-bucket
LOCAL_FILESYSTEM_VISIBILITY: public
- FRONT_URL: ${FRONT_URL:-http://localhost}
- env_file: ./.env
+ env_file:
+ - ./api/.env
volumes:
- - laravel-persist:/persist
- - ./storage/logs:/usr/share/nginx/html/storage/logs
+ - ./api/storage:/usr/share/nginx/html/storage
api-worker:
<<: *api
command: ./artisan queue:work
+ env_file:
+ - ./api/.env
volumes:
- - ./storage/logs:/usr/share/nginx/html/storage/logs
+ - ./api/storage:/usr/share/nginx/html/storage
ui:
image: jhumanj/opnform-client:latest
- environment:
- NUXT_PUBLIC_APP_URL: ${NUXT_PUBLIC_APP_URL:-/}
- NUXT_PUBLIC_API_BASE: ${NUXT_PUBLIC_API_BASE:-/api}
- NUXT_PRIVATE_API_BASE: http://ingress/api
env_file:
- - ./client/.env
- volumes:
- - ./client/.env:/app/.env
+ - ./client/.env
redis:
image: redis:7
@@ -60,5 +55,4 @@ services:
- 80:80
volumes:
- laravel-persist:
- postgres-data:
+ postgres-data:
\ No newline at end of file
diff --git a/docker/Dockerfile.api b/docker/Dockerfile.api
index 35a65ffd8..bcd3be7f4 100644
--- a/docker/Dockerfile.api
+++ b/docker/Dockerfile.api
@@ -8,9 +8,8 @@ COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN docker-php-ext-install pdo pgsql pdo_pgsql gd bcmath zip && pecl install redis && docker-php-ext-enable redis
-
WORKDIR /usr/share/nginx/html/
-ADD composer.json composer.lock artisan ./
+ADD api/composer.json api/composer.lock api/artisan ./
# NOTE: The project would build more reliably if all php files were added before running
# composer install. This would though introduce a dependency which would cause every
@@ -22,19 +21,19 @@ ADD composer.json composer.lock artisan ./
# post-autoload command from the composer file if we want to run composer without
# adding a dependency to all the php files.
RUN sed 's_@php artisan package:discover_/bin/true_;' -i composer.json
-ADD app/helpers.php app/helpers.php
+ADD api/app/helpers.php app/helpers.php
RUN composer install --ignore-platform-req=php
-ADD app ./app
-ADD bootstrap ./bootstrap
-ADD config ./config
-ADD database ./database
-ADD public public
-ADD routes routes
-ADD tests tests
-ADD resources resources
-ADD storage ./storage
-RUN chmod 777 -R storage
+ADD api/app ./app
+ADD api/bootstrap ./bootstrap
+ADD api/config ./config
+ADD api/database ./database
+ADD api/public public
+ADD api/routes routes
+ADD api/tests tests
+ADD api/resources resources
+ADD api/storage ./storage
+RUN chmod -R 775 storage && chown -R www-data:www-data storage
# Manually run the command we deleted from composer.json earlier
RUN php artisan package:discover --ansi
@@ -43,5 +42,10 @@ COPY docker/php-fpm-entrypoint /usr/local/bin/opnform-entrypoint
RUN chmod a+x /usr/local/bin/*
+# Create necessary directories and set permissions
+RUN mkdir -p storage/framework/sessions storage/framework/views storage/framework/cache \
+ && chown -R www-data:www-data storage \
+ && chmod -R 775 storage
+
ENTRYPOINT [ "/usr/local/bin/opnform-entrypoint" ]
-CMD php-fpm
+CMD php-fpm
\ No newline at end of file
diff --git a/docker/php-fpm-entrypoint b/docker/php-fpm-entrypoint
index 1ad0eaa9b..81f77e337 100644
--- a/docker/php-fpm-entrypoint
+++ b/docker/php-fpm-entrypoint
@@ -55,9 +55,6 @@ prep_storage() {
touch /var/log/opnform.log
chown www-data /var/log/opnform.log
-
- echo "Linking persistent storage into app"
- ln -t . -sf /persist/storage
}
main "$@"
\ No newline at end of file
diff --git a/scripts/setup-env.sh b/scripts/setup-env.sh
index 8b92e0d9d..bef9f76af 100755
--- a/scripts/setup-env.sh
+++ b/scripts/setup-env.sh
@@ -5,11 +5,11 @@ set -e
# Welcome to the OpnForm environment setup script!
# Paths to the environment files
-ENV_FILE=".env"
+ENV_FILE="api/.env"
CLIENT_ENV_FILE="client/.env"
# Paths to the environment templates
-ENV_EXAMPLE=".env.example"
+ENV_EXAMPLE="api/.env.example"
CLIENT_ENV_EXAMPLE="client/.env.example"
# Check for the --docker flag to use Docker-specific environment settings
@@ -17,7 +17,7 @@ USE_DOCKER_ENV=false
for arg in "$@"; do
if [ "$arg" == "--docker" ]; then
USE_DOCKER_ENV=true
- ENV_EXAMPLE=".env.docker"
+ ENV_EXAMPLE="api/.env.docker"
CLIENT_ENV_EXAMPLE="client/.env.docker"
echo "OpnForm setup detected the --docker flag. Preparing Docker-specific environment..."
break