Skip to content

Commit

Permalink
add handlers to module import
Browse files Browse the repository at this point in the history
  • Loading branch information
dannygoldstein committed Mar 12, 2021
1 parent 7a29fec commit dbf4386
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions requirements.docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ sphinx-rtd-theme
notedown
jsx-lexer
eralchemy==1.2.10
sphinx<3
sphinx_press_theme
myst-parser
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ numba==0.52.0
pyvo==1.1
lxml==4.6.2
suds-py3==1.4.3
penquins>=2.1.0
pymongo>=3.10.1
6 changes: 4 additions & 2 deletions skyportal/app_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
UserHandler,
WeatherHandler,
PS1ThumbnailHandler,
ZTFAlertCutoutHandler,
ZTFAlertHandler,
ZTFAlertAuxHandler,
KowalskiFilterHandler,
)
from skyportal.handlers.api.internal import (
PlotPhotometryHandler,
Expand Down Expand Up @@ -177,7 +181,6 @@
(r'/.*', MainPageHandler),
#
# Refer to Main.jsx for routing info.

# Fritz-specific handlers.
# Fritz-specific API endpoints
# ZTF Alerts
Expand All @@ -189,7 +192,6 @@
(r"/api/alerts/ztf/(.+)", ZTFAlertHandler),
# Alert Stream filter versioning via K:
(r"/api/filters/([0-9]+)?/v", KowalskiFilterHandler),

]


Expand Down
2 changes: 2 additions & 0 deletions skyportal/handlers/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .acls import ACLHandler, UserACLHandler
from .allocation import AllocationHandler
from .alert import ZTFAlertHandler, ZTFAlertAuxHandler, ZTFAlertCutoutHandler
from .candidate import CandidateHandler
from .classification import ClassificationHandler, ObjClassificationHandler
from .comment import CommentHandler, CommentAttachmentHandler
Expand All @@ -21,6 +22,7 @@
from .instrument import InstrumentHandler
from .invalid import InvalidEndpointHandler
from .invitations import InvitationHandler
from .kowalski_filter import KowalskiFilterHandler
from .news_feed import NewsFeedHandler
from .observingrun import ObservingRunHandler
from .photometry import (
Expand Down

0 comments on commit dbf4386

Please sign in to comment.