Skip to content

Commit

Permalink
Initial version of the Frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
pachovit committed Aug 9, 2024
1 parent a2b8732 commit 468cd11
Show file tree
Hide file tree
Showing 26 changed files with 20,617 additions and 0 deletions.
9 changes: 9 additions & 0 deletions echopages/api/endpoints.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from fastapi import Depends, FastAPI, HTTPException, status
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel, Field

import echopages.config
Expand All @@ -12,6 +13,14 @@
version="0.1.0",
)

app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)


class AddContentRequest(BaseModel):
source: str = Field(
Expand Down
23 changes: 23 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading

0 comments on commit 468cd11

Please sign in to comment.