Skip to content

Commit

Permalink
Removing collections backend (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
manasaV3 committed Sep 5, 2023
1 parent 5adfd82 commit 8871ad2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 155 deletions.
14 changes: 0 additions & 14 deletions backend/api/app.py
Expand Up @@ -6,7 +6,6 @@
from flask import Flask, Response, jsonify, render_template, request

from api.home import get_plugin_sections
from api.plugin_collections import get_collections, get_collection
from api.custom_wsgi import script_path_middleware
from api.model import get_index, get_manifest
from api.metrics import get_metrics_for_plugin
Expand Down Expand Up @@ -135,19 +134,6 @@ def get_plugin_metrics(plugin: str) -> Response:
)


@app.route("/collections")
def collections() -> Response:
return get_collections()


@app.route("/collections/<collection>")
def collection(collection: str) -> Response:
data = get_collection(collection)
if not data:
return app.make_response(("Collection does not exist", 404))
return data


@app.errorhandler(404)
def handle_exception(e) -> Response:
links = [rule.rule for rule in app.url_map.iter_rules()
Expand Down
80 changes: 0 additions & 80 deletions backend/api/plugin_collections.py

This file was deleted.

10 changes: 0 additions & 10 deletions backend/utils/auth.py

This file was deleted.

51 changes: 0 additions & 51 deletions backend/utils/github.py

This file was deleted.

0 comments on commit 8871ad2

Please sign in to comment.