Skip to content

Allow plugins to define additional URL routes and views #215

@simonw

Description

@simonw

Might be as simple as having plugins get passed the app after the other routes have been defined:

datasette/datasette/app.py

Lines 1270 to 1274 in b2955d9

app.add_route(
RowView.as_view(self),
'/<db_name:[^/]+>/<table:[^/]+?>/<pk_path:[^/]+?><as_json:(\.jsono?)?$>'
)

Refs #14

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions