Skip to content

Commit b6aac7d

Browse files
Remove all standalone project as it is not a priority for now and the design was shit.
1 parent 71e1da9 commit b6aac7d

38 files changed

+1
-5527
lines changed

proxbox_api/proxbox_api/routes/proxbox/__init__.py

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from proxbox_api.schemas.netbox import NetboxSessionSchema
88
from proxbox_api.exception import ProxboxException
99

10-
from pynetbox_api.database import SessionDep, NetBoxEndpoint
10+
1111

1212
router = APIRouter()
1313

@@ -125,31 +125,3 @@ async def proxbox_settings(
125125

126126
ProxboxConfigDep = Annotated[PluginConfig, Depends(proxbox_settings)]
127127

128-
@router.get("/settings/netbox")
129-
async def netbox_settings(session: SessionDep) -> NetboxSessionSchema:
130-
"""
131-
Get NetBox settings.
132-
133-
**Returns:**
134-
- **`NetboxSessionSchema`**
135-
"""
136-
137-
try:
138-
# Return the first NetBoxEndpoint from the database.
139-
netbox: list = session.exec(select(NetBoxEndpoint).limit(1)).all()
140-
for nb in netbox:
141-
return NetboxSessionSchema(
142-
domain = nb.ip_address,
143-
http_port = nb.port,
144-
token = nb.token
145-
)
146-
147-
except Exception as e:
148-
raise ProxboxException(
149-
message = "Error trying to get Netbox settings from database.",
150-
python_exception = f"{str(e)}"
151-
)
152-
153-
return None
154-
155-
NetboxConfigDep = Annotated[NetboxSessionSchema, Depends(netbox_settings)]

standalone/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

standalone/.gitignore

Lines changed: 0 additions & 36 deletions
This file was deleted.

standalone/README.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

standalone/app/api/route.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

standalone/app/cluster/[cluster_name]/page.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

standalone/app/cluster/layout.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

standalone/app/cluster/page.tsx

Lines changed: 0 additions & 10 deletions
This file was deleted.

standalone/app/cluster/testpage.tsx

Lines changed: 0 additions & 3 deletions
This file was deleted.

standalone/app/error.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)